-
Website
http://diamondtearz.org/ -
Original page
http://diamondtearz.org/blog/2007/07/12/seeking-advice-on-as2-as3-hybrid-codebase/ -
Subscribe
All Comments -
Community
-
Top Commenters
-
Gilang Mahival
1 comment · 1 points
-
rmdesign
1 comment · 1 points
-
Iron Mascarenhas
1 comment · 1 points
-
David Warner
2 comments · 1 points
-
Indian Smartphones Blog
1 comment · 1 points
-
-
Popular Threads
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
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.