[swfmill] Accessing frames in AS3

Hudson Ansley hudsonansley at gmail.com
Mon Nov 12 14:25:32 PST 2007


You can communicate with an AVM1 swf loaded into an AVM2 swf through a
LocalConnection object. It is a PITA and the data chunk that can be
sent at one time is limited (something like 32k), but it does allow
back and forth. The big problem with this is you need code in your
AVM1 swf to connect to the LocalConnection object from the AVM2 swf.
To get around changing the AVM1 swf, you could create a AVM1 wrapper
swf that has the LocalConnection code in it that will be able to load
the target swf and act as a bridge between the two... I only have used
LocalConnection to communicate directly between the two VMs so far
because I was able to have all my AVM1 swfs recompiled with the
LocalConnection code, but I think the wrapper idea should work :-)

Regards,
Hudson



More information about the swfmill mailing list