简体   繁体   English

Adobe Air stop(); 似乎不起作用

[英]Adobe Air stop(); doesn't seem to work

When I work on my Air Project, I used stop(); 当我在Air Project上工作时,我使用了stop(); to stay in a frame(which is my menu), I built the .air for testing purposes and the frames keep looping, as in, it plays all the frames, and it won't stop as it's instructed to. 为了停留在框架(这是我的菜单)中,我构建了.air进行测试,并且框架不断循环播放,例如,它播放所有框架,并且不会按照指示停止。

Is there anything wrong? 有什么问题吗? I'm building my Application in Flash CS5, not Flex. 我在Flash CS5(而不是Flex)中构建应用程序。 Thanks for helping! 感谢您的帮助!

I've had this issue before when I tried to stop a MovieClip which contained other MovieClips. 在尝试停止包含其他MovieClip的MovieClip之前,我曾遇到过此问题。 Is this possibly the case with you? 您可能是这种情况吗?

If it is, be sure to call stop on each of the MovieClips internally. 如果是这样,请确保在内部在每个MovieClip上调用stop。

EDIT: You also need to check your syntax. 编辑:您还需要检查语法。 I had one MovieClip that wouldn't stop, and I found a typo in the gotoAndStop call for it inside an event handler that hadn't even fired. 我有一个无法停止的MovieClip,我在一个甚至没有触发的事件处理程序中的gotoAndStop调用中找到了一个错字。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM