AS3 从影片剪辑内部调用帧中的方法
可能的重复:
对象内部根时间轴的 currentFrame
在使用as3.0的flash中,我必须从movieClip调用主舞台上的函数
我的场景中的框架中有此方法:
functiontoggleStreaming():void { //某物 ?
我希望能够从 movieClip 中调用该方法,如何指向该方法
Possible Duplicate:
currentFrame of root timeline from inside object
In flash with as3.0, I have to call a function on the main stage from a movieClip
I have this method in a frame on my scene:
function toggleStreaming():void
{
//something
}
and I would like to be able to call that method from within a movieClip, how do I point to the method?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
假设包含该函数的帧是您可以使用的主时间线:
Assuming the frame containing the function is the main timeline you could use: