Can an actionScript2 app be used inside an AS3 app?
I have inherited an AS2 application which has a lot of functionality. I need to somehow embed this thing into my AS3 application so that I can make function calls etc. And basically control it. Has anyone ever tried something like this? I guess I'll have to use the URLLoader AS2 SWF in MovieClip and grab it from there.
source to share
AS3 SWF (AVM2 Movie) can load AS2 Movies (AVM1 Movie) using a class Loader
, but cannot access its methods / properties. The downloaded AS2 movie will be of type AVM1Movie (not MovieClip).
Livedocs page about AVM1Movie
The two films can communicate with each other using a class LocalConnection
. See sending data from avm2 to avm1
source to share
Grant Skinner has a very useful couple of classes that make it easy to communicate AS3<->AS2
through LocalConnection. We have used it with great success.
http://www.gskinner.com/blog/archives/2007/07/swfbridge_easie.html
source to share