Psyked *
it’s easy once you know how.Actionscript 2 to Actionscript 3 communication? try FlashInterface…
Posted by James - 20/08/08 at 09:08:38 amAs you probably know, Actionscript 2 and Actionscript 3 projects aren’t completely compatable – they can’t be, what with all the changes under the hood. Migrating your own coding techniques is hard enough, but migrating projects can be so much easier and nigh-on-impossible. So, how could you make a mish-mash of Actionscript 2 and Actionscript 3 movies play nice?
Well, there’s a few solutions, and several classes that claim to do the job, but the best I’ve found is FlashInterface. It might take a bit of figuring out at first, but the Events based model means that I find it quite easy to use.
Links
August 20, 2008 | In External links | 2 Comments



Hi James,
Just for info, FlashInterface works fine if you’re in a web browser – but if you’re in AIR or some other projector-based environment, unfortunately it doesn’t work. At that point you need to fall back on a LocalConnection-based solution; we currently use Grant Skinner’s SWFBridge.
(However, having done a lot of work on this, AVM1/AS2 support when running inside AVM2/AS3 is very buggy; I don’t recommend it.)
Ian
Comment by IanT — 20 August 2008 #
Ah – its a shame FlashInterface doesn’t work for the non-browser based movies, but at least I know that now!
Comment by James — 20 August 2008 #