// you’re reading...

ActionScript 3.0

Seeking advice on AS2 -AS3 Hybrid Codebase

I have been unsuccessfully googling for tips on AS2/AS3 Hybrid Projects. I have found some links in the past but would love any links that other developers might have come across that could advise me on the approaches and pitfalls involved in this endeavor.

M

Discussion

2 comments for “Seeking advice on AS2 -AS3 Hybrid Codebase”

  1. Flex 2 developers have been dealing with this for over a year. (Flex 2 has been in GA since June 2006, and Flex 2 is exclusively AS3.)

    JesseWarden.com had an excellent post on this topic dated June 16, 2007
    entitled “Flex Controlling Flash”. Weirdly it and related posts are no longer up on JesseWarden.com?!

    But they are still in google cache! Here is a tinyurl to the google cache version:
    http://tinyurl.com/39pzel

    Just to give you a flavor, here is the last part of Jesse’s preface:
    Before you read further, I strongly suggest you beg those in charge to allow you to re-write the AS2 content in AS3 (Flex 2 or Flash CS3). If that fails, keep reading.

    Basically, AS3 lives in the AVM2 (Actionscript Virtual Machine). AS1/AS2 live in AVM1. And code in AVM2 and AVM1 can not directly reference each other. Ergo Jesse’s advice that you “re-write the AS2 content in AS3″.

    hth,

    g

    Posted by greg h | July 12, 2007, 11:57 pm
  2. Personally I haven’t yet gotten into using AS3 on projects at work.

    I think however instead of re-writing a lot of code, one could look into using ExternalInterface. Its been around for a long time for AS2 and though I haven’t used it the AS3-Javascript adobe project is called FABridge.

    It would be an excuse to write some OOP Javascript and everyone loves doing that.

    Posted by Kris Meister | August 14, 2007, 10:46 pm

Post a comment