Go Back   BWHacks > Development > Web Development

Web Development Website design and programming, content development. It's all here.

Reply
 
LinkBack Thread Tools

Old 05-01-2008, 11:05 AM   #1 (permalink)
Azu
Posting disabled

Disciple
 
Azu's Avatar
 
Join Date: Feb 2006
Location: Hawaii
Posts: 496
Azu will become famous soon enough
Send a message via ICQ to Azu Send a message via AIM to Azu Send a message via MSN to Azu Send a message via Yahoo to Azu
Default ">>>" command in Flash?

What does the >>> command do in Flash? And what is the PHP equivalent (putting >>> in PHP gives "Parse error: syntax error, unexpected '>'")?

I'm trying to reverse engineer the imeem swf player and this command is used 21 times in it.

Example usage;
Code:
        public function tea_code(arg1:*, arg2:*):*
        {
            var loc3:*;
            var loc4:*;
            var loc5:*;
            var loc6:*;
            var loc7:*;

            loc3 = arg1[0];
            loc4 = arg1[1];
            loc5 = 0;
            loc6 = 32;
            while (loc6-- > 0) 
            {
                loc3 = loc3 + ((loc4 << 4 ^ loc4 >>> 5) + loc4 ^ loc5 + arg2[(loc5 & 3)]);
                loc3 = loc3 | 0;
                loc5 = (loc5 = loc5 - 1640531527) | 0;
                loc4 = (loc4 = loc4 + ((loc3 << 4 ^ loc3 >>> 5) + loc3 ^ loc5 + arg2[(loc5 >>> 11 & 3)])) | 0;
            }
            (loc7 = new Array())[0] = loc3;
            loc7[1] = loc4;
            return loc7;
        }

P.S. how would I go about searching for >>> in Google? It says "Your search - >>> - did not match any documents." when I try to search for it.

Last edited by Azu : 05-01-2008 at 11:14 AM.
Azu is offline   Reply With Quote

Old 05-01-2008, 01:13 PM   #2 (permalink)
K? Pŕo?ćtiόnŹ
=)
Senior Member
Game Hacking Staff

Messiah
 
K? Pŕo?ćtiόnŹ's Avatar
 
Join Date: Oct 2004
Location: Okinawa
Posts: 8,729
K? Pŕo?ćtiόnŹ has a reputation beyond reputeK? Pŕo?ćtiόnŹ has a reputation beyond reputeK? Pŕo?ćtiόnŹ has a reputation beyond reputeK? Pŕo?ćtiόnŹ has a reputation beyond reputeK? Pŕo?ćtiόnŹ has a reputation beyond reputeK? Pŕo?ćtiόnŹ has a reputation beyond reputeK? Pŕo?ćtiόnŹ has a reputation beyond reputeK? Pŕo?ćtiόnŹ has a reputation beyond reputeK? Pŕo?ćtiόnŹ has a reputation beyond reputeK? Pŕo?ćtiόnŹ has a reputation beyond repute
Send a message via AIM to K? Pŕo?ćtiόnŹ
Default

Bitwise shift operators

The bitwise shift operators take two operands and shift the bits of the first operand to the extent specified by the second operand. All the bitwise shift operators, as listed in the following table, have equal precedence:

Operator


Operation performed
<<

Bitwise left shift
>>

Bitwise right shift
>>>

Bitwise unsigned right shift
__________________

Last edited by K? Pŕo?ćtiόnŹ : 05-01-2008 at 01:18 PM.
K? Pŕo?ćtiόnŹ is offline   Reply With Quote

Old 05-01-2008, 05:10 PM   #3 (permalink)
Azu
Posting disabled

Disciple
 
Azu's Avatar
 
Join Date: Feb 2006
Location: Hawaii
Posts: 496
Azu will become famous soon enough
Send a message via ICQ to Azu Send a message via AIM to Azu Send a message via MSN to Azu Send a message via Yahoo to Azu
Default

Thank you.

So I'm guessing there is no equivalent in PHP, since PHP doesn't have unsigned integers?
I'll have to try to implement some kind of hacky work around that will probably be a lot slower then a normal bitwise operator?
Azu is offline   Reply With Quote

Old 05-01-2008, 07:40 PM   #4 (permalink)
SC_Modder
Loading javascript...
Senior Member
Administrator

Inquisitor
 
SC_Modder's Avatar
 
Join Date: Nov 2004
Posts: 4,488
SC_Modder has a reputation beyond reputeSC_Modder has a reputation beyond reputeSC_Modder has a reputation beyond reputeSC_Modder has a reputation beyond reputeSC_Modder has a reputation beyond reputeSC_Modder has a reputation beyond reputeSC_Modder has a reputation beyond reputeSC_Modder has a reputation beyond reputeSC_Modder has a reputation beyond reputeSC_Modder has a reputation beyond reputeSC_Modder has a reputation beyond repute
Send a message via AIM to SC_Modder
Default

There may be a PHP function for bitwise operations. You'd have to look.
__________________
AaronOpfer.com - My music
SC_Modder is offline   Reply With Quote

Old 05-01-2008, 07:43 PM   #5 (permalink)
Azu
Posting disabled

Disciple
 
Azu's Avatar
 
Join Date: Feb 2006
Location: Hawaii
Posts: 496
Azu will become famous soon enough
Send a message via ICQ to Azu Send a message via AIM to Azu Send a message via MSN to Azu Send a message via Yahoo to Azu
Default

Thanks for the tip, I already tried that though.

There are << and >> but those are differant form <<< and >>>
Azu is offline   Reply With Quote

Old 05-02-2008, 12:18 AM   #6 (permalink)
K? Pŕo?ćtiόnŹ
=)
Senior Member
Game Hacking Staff

Messiah
 
K? Pŕo?ćtiόnŹ's Avatar
 
Join Date: Oct 2004
Location: Okinawa
Posts: 8,729
K? Pŕo?ćtiόnŹ has a reputation beyond reputeK? Pŕo?ćtiόnŹ has a reputation beyond reputeK? Pŕo?ćtiόnŹ has a reputation beyond reputeK? Pŕo?ćtiόnŹ has a reputation beyond reputeK? Pŕo?ćtiόnŹ has a reputation beyond reputeK? Pŕo?ćtiόnŹ has a reputation beyond reputeK? Pŕo?ćtiόnŹ has a reputation beyond reputeK? Pŕo?ćtiόnŹ has a reputation beyond reputeK? Pŕo?ćtiόnŹ has a reputation beyond reputeK? Pŕo?ćtiόnŹ has a reputation beyond repute
Send a message via AIM to K? Pŕo?ćtiόnŹ
Default

x=int(x/2^y) would **** it right y amount. I dont know if thats what the unsigned right shift **** does, really I havent used it.
__________________
K? Pŕo?ćtiόnŹ is offline   Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Converting Flash to Video Loser777 Hardware and Software 10 10-18-2007 01:41 AM
Flash mp3 player? SC_Modder Web Development 6 10-09-2007 04:11 PM
Flash Drive as Ram if you use Vista The_Jelly Hardware and Software 10 03-31-2007 07:47 PM
Flash MX 2004 Professional : Beginners Flash Tutorial (released). Ganondorf Graphics Tutorials 4 07-22-2005 09:47 PM
Macromedia Flash 2004: ActionScript Tutorial 1 Ganondorf Graphics Tutorials 1 05-19-2005 08:51 PM


All times are GMT. The time now is 11:09 PM.


vBulletin style developed by Transverse Styles

Powered by vBulletin Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
Copyright © 2004-2008 BWHacks
Ad Management by RedTyger