停止在最后一帧(闪光) [英] stopping on the last frame (flash)

查看:95
本文介绍了停止在最后一帧(闪光)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望我的影片剪辑播放一次停止在最后一帧。我用下面的code在我的影片剪辑类的循环。 (这是AS3)

I want my movieclip to play once and stop on the last frame. I use the following code in the loop of my movieclip class. (this is as3)

if(currentFrame == 120)
stop();

120是最后的帧。它可以播放一次。但问题是,它可以追溯到第1帧了。有没有停在一个特定的帧中的影片剪辑的一个比较好的方法。

120 is the last frame. It plays once. but the problem is it goes back to frame 1 again. is there a better method of stopping a movieclip on a particular frame.

推荐答案

这是因为对象是获取调用两次。

it was because the object was getting called twice.

这篇关于停止在最后一帧(闪光)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆