开发者

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

I appreciate loading AS2 into AS3 is never going to be fun, but unfortunat开发者_如何学Goely 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.


AVM1 movieclip actionscript would not run by itself in AVM2 enironment. You will have to wrtie a wrapper for the same using LocalConnection.

check out an example here http://www.actionscript.org/forums/showthread.php3?t=116805

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜