闪光停止();将影片剪辑导出为 SWC 后似乎不起作用
我有一个 Flash CS 5.5 fla,带有基本的时间轴动画。在最后一帧,我放置了一个关键帧,唯一的代码是,
stop();
但是该影片剪辑不会在最后停止,而是无限循环。
该影片将导出为 SWC,然后加载到另一个 Flash 影片中。然而,除了嵌入它之外,这不会调用电影中的任何函数,也不会与之交互。
我已经用flashplayer的debug版本对此进行了测试,看看是否有任何异常,但没有出现错误。
i have a Flash CS 5.5 fla with a basic timeline animation. at the very last frame i put a keyframe with the only code being
stop();
nevertheless this movieclip doesnt stop at the end but loops infinitely.
the movie is exported as an SWC which is then loaded into another flash movie. however this does not call any functions in the movie nor does it interact with it, other than embedding it.
i have already tested this with the debug version of flashplayer to see if there are any exceptions, but no errors occur.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
你如何实例化 MovieClip?如果您使用 [Embed(src...)] 方法,我认为您的所有脚本都将被删除。与嵌入式 SWF 相同。将 SWC 添加到构建路径中。
http://www.airtightinteractive.com/2009/ 06/better-flash-asset-loading-using-swcs/
How are you instantiating the MovieClip? If you are using the [Embed(src...)] method I think all of your scripts will be removed. Same with embedded SWFs. Add the SWC to the build path instead.
http://www.airtightinteractive.com/2009/06/better-flash-asset-loading-using-swcs/
stop();
是正确的;我的猜测是你犯了一些错误,例如,你是否将 stop() 放在了主时间线上而不是 MovieClip 上?
输出窗口显示任何编译错误?
The
stop();
is correct;my guess is that you have made some mistake, for example, do you have put the stop() on the MAIN timeline and not on a MovieClip?
The output windows shows any compilation errors?
听起来好像某些脚本在到达
stop();
之前造成了严重破坏。 Flash Player 倾向于在某些代码上默默地失败,同时继续播放时间线,就好像什么也没发生一样。调试此问题并找出时间轴上发生错误的位置的一种方法是向时间轴添加额外的临时
stop();
命令。通过向后工作,您应该能够查明 Flash Player 在哪一帧进入“盲”模式。Sounds like some script is causing havoc before the
stop();
is reached. Flash Player has a tendency to silently fail on some code while keep playing a timeline as if nothing happened.One way to debug this and to find out where on your timeline the error occurs is to add additional temporary
stop();
command s to your timeline. By working backwards you should be able to pinpoint on which frame the Flash Player goes into "blind" mode.