« sojapanese | Main | AVM2Loader class »

Loading AVM1 swf as AVM2 swf

Finally I found how we load AVM1 swf as AVM2.

  • Movie should be uncompressed
  • Movie should not include any as2 script

All we need to do is...

  • Load AVM1 movie as bytecode with URLLoader
  • Change index[3] ( that is 6,7 or 8 ) to 9
  • Find the byte code pattern, "44, 11, 00", that is somewhere around position 10 to 30
  • Rewtire that to "44, 11, 08"
  • Load bytecode with Loader

That it. Now you can fully access property and movieclips in the AVM1 movies.

Trackbacks

Url for tackback:
http://www.fladdict.net/mt/mt-tb.cgi/248

この一覧は、次のエントリーを参照しています: Loading AVM1 swf as AVM2 swf:

» fladdict.net: Loading AVM1 swf as AVM2 swf from flextips
How to load a flash 8 or previous swf into a as3 swf to access UI elements. P... [詳しくはこちら]

Comments

Cool! Did you test, if AS2 code works fine?

-abdul

I havent test, but I think AS2 code should not work.
Because compile method of code is completery deifferent.

Post

(いままで、ここでコメントしたことがないときは、コメントを表示する前にこのブログのオーナーの承認が必要になることがあります。承認されるまではコメントは表示されません。そのときはしばらく待ってください。)