Last year I had to do an update to a flash website. The client needed a news widget that will read the news from o specified location using XML. I thought… I’ll create a new component containing the image, the title, the date and the text, then use a repeater to display them. Easy job in flex. So I did that.
Then I run in the following problem: load AS3 swf in AS2 and that because I didn’t previously checked for what version of flash player the flash site was published.
If you ever asked yourselves if it possible to do that, to load AS3 into AS2, well… it is NOT possible. So don’t try it.
To quote Adobe:
SWF files written in ActionScript 1.0 or 2.0 cannot load SWF files written in ActionScript 3.0. This means that SWF files authored in Flash 8 or Flex Builder 1.5 or earlier versions cannot load ActionScript 3.0 SWF files.
AS3 can load AS2 swf files but it cannot access its classes, methods, variables and functions.
If you want to know more regarding the compatibility between AS1, AS2 and AS3 follow this link: http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=00000011.html
Tags: ActionScript, as2, as3, compatibility
This post was written by Andrei Ionescu
Views: 5084









