Go to content Go to menu

Taka over at fladdict has come up with a neat way of altering the bytecode of an uncompressed SWF, to get access to properties exported for Actionscript. The first use I can think of is a neat alternative to some of the functions promised by FlashInterface.

Loading AVM1 SWF as AVM2 SWF.

By extending SWFLoader you get access the the protected loadBytes() method, which you can use in conjunction with the above alterations to outwit the fences around AVM2.

This effectively gives the behaviour of loading up a Flash 9 SWF into Flex – you can access variables within the SWF via the .content property, a nice little monkey patch to fly over the walls betwen AVM1 and AVM 2.

Of course, if you were looking for the conventional method, you should be looking at the SWFLoader component in Flex

Leave A Reply

Textile Help