开发者

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

When I work on my Air Project, I used stop(); to stay in a frame(which is my menu), I built the .air for testing purposes and the frames keep looping, a开发者_StackOverflow社区s in, it plays all the frames, and it won't stop as it's instructed to.

Is there anything wrong? I'm building my Application in Flash CS5, not Flex. Thanks for helping!


I've had this issue before when I tried to stop a MovieClip which contained other MovieClips. Is this possibly the case with you?

If it is, be sure to call stop on each of the MovieClips internally.

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.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜