Flash play() 立即处理?

发布于 2024-07-14 14:18:42 字数 183 浏览 6 评论 0原文

Flash 中的 play() 函数是否

  1. 将 MovieClip 的播放头移动到下一帧 - 一旦调用 play()
  2. MovieClip 的状态更改为“正在播放” " -- 当影片移动到下一帧时,实际上将 MovieClip 移动到下一帧

Does the play() function in Flash:

  1. move the playhead of the MovieClip to the next frame -- as soon as play() is called
  2. change the MovieClip's state to "playing" -- actually move MovieClip to next frame, when movie moves to next frame

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(2

欲拥i 2024-07-21 14:18:42

正常情况下是选项2。但是,可以立即重新绘制框架。 但有一个问题,您只能在鼠标移动和计时器间隔处理程序中执行此操作。 在 AS3 中,查看 MouseEvent.updateAfterEventTimerEvent.updateAfterEvent 方法。 在 AS 2 中,有一个全局 updateAfterEvent 函数,您可以使用相同的限制。

In normal circumstances it would be option 2. However, it is possible to have the frame re-drawn immediately. There is a catch though, you can only do this within mouse move and timer interval handlers. In AS3 have a look at the MouseEvent.updateAfterEvent and the TimerEvent.updateAfterEvent methods. In AS 2 there is a global updateAfterEvent function you can call with the same restrictions.

寻梦旅人 2024-07-21 14:18:42

我认为是2.将MovieClip的状态更改为“正在播放”

I think its 2. change the MovieClip's state to "playing"

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