Actionscript 2 to Actionscript 3 communication? try FlashInterface…

As 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

About James

James is a Senior New Media Developer at MMT Digital, and has BA(Hons) in Design for Interactive Media from the University of Gloucestershire. He loves designing and producing all sorts of website and Flash-related things, as well as prattling on about technologies.Day-to-day he works with Flash, Dreamweaver, Director, Microsoft Office Sharepoint Server 2007 (MOSS) and in his spare time he mucks about in Flex and Wordpress.Follow James on Twitter.

2 Responses to “Actionscript 2 to Actionscript 3 communication? try FlashInterface…”

  1. IanT 20th August, 2008 at 10:36 am # Reply

    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

  2. James 20th August, 2008 at 11:00 am # Reply

    Ah – its a shame FlashInterface doesn’t work for the non-browser based movies, but at least I know that now!

Leave a Reply

Note: This post is over 3 years old. You may want to check later in this blog to see if there is new information relevant to your comment.