如何在 Flash 播放组件中更改控件位置并添加鼠标移出淡出效果

发布于 2024-09-29 02:07:55 字数 177 浏览 0 评论 0原文

您好,我正在使用 ActionScript 3.0 在 flash cs5 中导入视频。 我已经复制了 SkinOverPlay.fla,并且正在更改它以满足我的需要。

我正在屏幕中央寻找一个播放/暂停按钮(没有其他控件),当鼠标移出视频时该按钮会消失。

我也在寻找如何循环播放视频。

谢谢!

Hello i'm importing a video in flash cs5, using actionscript 3.0.
I have copy the SkinOverPlay.fla and i'm changing it to fit my needs.

I am looking for just a play/pause button (no other controls) in the center of the screen that disapear when the mouse it out of the video.

I am looking also on how to play the video in loop.

thanks!

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

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

发布评论

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

评论(1

你的心境我的脸 2024-10-06 02:07:55

对于播放控件,您可以通过指定用于控件的对象来完成此操作,而无需使用外观。例如:

flvPlayback.playButton = playbtn; 

这是 adobe 上一篇关于自定义 FLVPlayback 的精彩文章。

http://www.adobe.com/devnet/flash/articles/custom_flvcomp.html

至于循环播放视频,您可以通过监听 VideoEvent.COMPLETE 事件然后再次播放视频来实现。我很确定这个事件不太一致。因此,如果您希望循环播放视频动画并使其从头到尾无缝,您可能需要添加一个输入帧侦听器并检查播放头时间或使用提示点。

For the playback controls, you can do this without using a skin by specifying the object to use for controls. For example:

flvPlayback.playButton = playbtn; 

Here's a great article form adobe on customizing the FLVPlayback.

http://www.adobe.com/devnet/flash/articles/custom_flvcomp.html

As for looping the video, you can do this by listening for the VideoEvent.COMPLETE event and then playing the video again. I'm pretty sure that this event isn't very consistent. So if you looking to loop a video animation and have it be seamless from end to begginning you might want to add a enter frame listener and check the playheadtime or use cue points.

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