TwelvestoneFlash

AS2 *and* AS3?


Sign in

  • Waiting for Godot ( 720 k posts )
    Just conversation.
  • Thunder Dome ( 23 k posts )
    Photoshop Tennis and Collabs.
  • Photography ( 4.8 k posts )
    For all you shutterbugs, sh...
  • Flash ( 18 k posts )
    ActionScripting to tweens, ...
  • Front End ( 5.8 k posts )
    general front end design an...
  • Back End ( 9.6 k posts )
    serverside scripting, progr...
  • Projects and Theory ( 12 k posts )
    This forum is for discussio...
  • FAQ ( 269 posts )
    All those nagging questions...
  • Design ( 17 k posts )
    graphics & all aspects of g...
  • Purgatory ( 3.6 k posts )
    12stone Jail, feel free to ...
rogue_designer
 
2008-11-17

Hey all - forgive the likely idiotic question.

I have an XML stock ticker that I'm loading and building out with AS3 - but in the same FLA I have an older component written in AS2.

I get the occasional output message that the older piece requires AS2 (duh), but it seems to work fine on initial testing. Will that be an issue on final export or can they both run and play nice nice? I can't seem to find a straight answer anywhere.

If they don't get along, is there a way to package up an AS2 element and wrap it in AS3 tags? Or something? I'd really rather not have to create a new component if I can avoid it.

Thanks much.

lithium
 
2008-11-18

You can load an AVM1 movie into an AVM2 swf provided you don't intent to interact between them, however you can use LocalConnection to communicate between the two VMs, but it's not something that i would rely on 100%.

You'll need to have the AVM1 component in a separate swf and load it into the AVM2 movie for this to work properly though.

Cheers,

A.

rogue_designer
 
2008-11-20

Cool - thank Lith. I think i understood that. k

It may be a non-issue now anyway, as we might be running the mini-apps in different areas.

shrug

Good to know its not impossible anyway.

Arsis
 
2008-11-20

Originally posted by: lithium You can load an AVM1 movie into an AVM2 swf provided you don't intent to interact between them, however you can use LocalConnection to communicate between the two VMs, but it's not something that i would rely on 100%.

You'll need to have the AVM1 component in a separate swf and load it into the AVM2 movie for this to work properly though.

Cheers,

A.

In other words, try and avoid mixing AS2 and AS3 as they require different virtual machines and the work around is flakey and hack-like.

Sorry, you must be a member to post to a conversation. Either log in or sign up to get involved.
TwelvestoneFlash

AS2 *and* AS3?