AS3 从影片剪辑内部调用帧中的方法

发布于 2025-01-08 09:24:03 字数 512 浏览 5 评论 0原文

可能的重复:
对象内部根时间轴的 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

耳钉梦 2025-01-15 09:24:03

假设包含该函数的帧是您可以使用的主时间线:

MovieClip(root).toggleStreaming();

Assuming the frame containing the function is the main timeline you could use:

MovieClip(root).toggleStreaming();
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文