开发者

How to control a movieclip that was loaded using loadclip() in AS2?

开发者 https://www.devze.com 2022-12-08 08:08 出处:网络
This is in AS2. I\'m loading an external AS2 swf using the loadclip function. 开发者_运维知识库But I don\'t know how to call its gotoAndPlay or stop functions. How do I reference to them?

This is in AS2. I'm loading an external AS2 swf using the loadclip function.

开发者_运维知识库But I don't know how to call its gotoAndPlay or stop functions. How do I reference to them?

When I trace the loaded file it says

_level0.mcContainer.instance42

The object path always varies every load like now it's instance42 sometimes it becomes instance7 or instance10.


Ok. I was wrong. instance42 refers to the anonymous instances inside the loaded swf. upon loading the loaded clip replaces the container movieclip, hence I can refer to the loaded swf using mcContainer.

0

精彩评论

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