1 Star2 Stars3 Stars4 Stars5 Stars
Loading ... Loading ...

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

2 Comments »

  1. 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 #

  2. 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 #

Leave a comment

XHTML: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

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