Loaded AS2 SWF into AS3 SWF as AVM1Movie doesn't run any actionscript in the AS2 SWF

Posted by steve on Stack Overflow See other posts from Stack Overflow or by steve
Published on 2010-04-06T16:27:34Z Indexed on 2010/04/06 16:33 UTC
Read the original article Hit count: 766

Filed under:

I appreciate loading AS2 into AS3 is never going to be fun, but unfortunately I have to on this one.

I'm using the Loader Class in AS3 to load an external AS2 SWF onto the stage as a AVM1Movie Object. Anything that is placed on the stage in the AS2 FLA displays fine, but no ActionScript runs at all.

The loaded AS2 SWF has one layer, one frame and a few images in the library but nothing heavy. I've tried stripping everything out of the script other than a simple call to change the text on a dynamic textfield on the stage - still nothing.

I have a listener in AS3 waiting for Event.INIT rather than Event.COMPLETE - but neither works.

Am I missing something? Anyone else experienced anything similar? It's like it loads but doesn't run.

© Stack Overflow or respective owner

Related posts about as3