Fx{r} is trying to start the Fx{r} Community! Please join our group on Adobe Groups following this link: http://groups.adobe.com/groups/ab29539ab9.
Fx{r} is now on Twitter too. Follow us @ twitter.com/fx_r!
« Adobe MAX 2008 Europe - Sneaks Peaks
» Different Rows in DataGrid - Programmatically Added itemRenderers (ClassFactory and IFactory)

ActionScript, Flash Player

Load AS3 SWF in AS2 SWF

Andrei Ionescu | 07.01.09 | Comment?

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

Share and Enjoy:
  • TwitThis
  • Technorati
  • StumbleUpon
  • del.icio.us
  • NewsVine
  • Reddit
  • Digg
  • Furl
  • co.mments
  • blogmarks
  • Slashdot
  • description
  • Taggly
  • YahooMyWeb
  • connotea
  • Webride




Tags: , , ,

This post was written by Andrei Ionescu

Views: 3108

related

have your say

Add your comment below, or trackback from your own site. Subscribe to these comments.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">

:

:


« Adobe MAX 2008 Europe - Sneaks Peaks
» Different Rows in DataGrid - Programmatically Added itemRenderers (ClassFactory and IFactory)