在 Flash 视频开始之前停止它
我对 PHP 和 Javascript 很熟悉,但这是我第一次使用 flash。我有Flash CS5。
我已经成功导入了一个电影文件,但是,一旦下载它就开始播放。我尝试过使用 Action stop();编码,它可以在 CS5 的导出预览中运行文件,但在网站上它可以直接运行。
我知道我无法使用该命令,因为这会停止时间线,但那时视频已经在播放。我的解决方案是在第 2 帧中使用视频,然后在我准备好时让 javascript 跳转到第 2 帧。但是,我找不到将视频文件导入到 CS5 中的帧的方法。有更好的办法吗?
任何帮助将不胜感激。 标记
I'm comfortable with PHP and Javascript but this is the first time I'm using flash. I have Flash CS5.
I've managed to import a movie file, however, as soon as it's downloaded it starts playing. I've tried using the Action stop(); coding, which works file in the export preview in CS5, but on a website it runs straight away.
I know I can't use the command because that stops the timeline but by then the video is already playing. My solution would be to use and have the video in frame 2, then get javascript to jump to frame 2 when I was ready. However, I can't find a way to import a video file to a frame in CS5. Is there a better way?
Any help would be much appreciated.
Mark
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您最好忽略框架并通过代码从单个框架控制资产。您可以发布代码示例来展示您如何导入视频吗?
如果您使用 FLVPlayback 组件,请将 autoPlay 设置为 false。
如果您使用的是视频对象,请暂停 NetStream 直到您准备好播放 (ns.pause();),然后开始使用 ns.resume();
You are better off ignoring the frames and controlling the assets from a single frame via code. Can you post a sample of code to show how you are importing the video?
If you are using the FLVPlayback component then set autoPlay to false.
If you are using a Video Object then pause the NetStream until you are ready to play (ns.pause();) then to start use ns.resume();