I'm working on a swf compiler, and actionscript bytecodes have become my life recently. Even if you could care less, you might like this... If you want to insert bytecode in your flash file, you can use __bytecode__("hex vals");. Someone from mm had mentioned that at one point in passing, but I hadn't tried it till a few days ago. I put an quick bytecode extractor on the compiler, and it works great. So you can easily inject those special loops (that are built for speed not for comfort) right into your work. And work it does, like a champ. Example? Paste this into Flash (watch for wrap):

__bytecode__("88240002006900486F6C7920736869742C2062797465636F646520696E2074686520666C612100960B0008000600000000000000003C96020008001C960500070A00000048129D02001500960200080126960400080008001C501D990200D6FF00");

Maybe this is old news, but I will certainly put a pcode mode in the compiler knowing that. In the meantime, flasm is your friend : ).
posted on Wednesday, October 15, 2003 4:29 AM
Feedback
  • # re: __bytecode__
    phlaphi
    Posted @ 12/4/2003 6:16 AM
    imo that's completely useless - no matter where you will put a call to slow routine (ex. createEmptyMovieClip) - in as or directly in bytecode - it remains slow anyway because flash virtual machine is slow itself

  • # re: __bytecode__
    Bill
    Posted @ 7/12/2004 4:32 PM
    I really like the ability to program down to the metal. In some respects you can use it for security, and like all things at this level, when you need it, you really need it. Thanks.

    Now to unravel the whole thing!

  • # re: __bytecode__
    Lar
    Posted @ 8/3/2004 10:26 AM
    Are you aware of any other tool or process out there which will generate bytecode for a swf? I have used ASV 4 to grab the bytecode but I was hoping to find another manner of doing this. I have an idea for obfuscation using a cipher and would like to build out a tool which would grab bytecode on the file and obfuscate it. Thanks.

Blog Stats

  • Posts - 120
  • Stories - 1
  • Comments - 390
  • Trackbacks - 47

.Net Blogs

01101 Blogs

Flash Blogs

Graphics

People