通过HTML或JavaScript更改播放flash对象 [英] Change playback of flash object via html or javascript

查看:102
本文介绍了通过HTML或JavaScript更改播放flash对象的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是有可能改变一个Flash对象的播放速度,而无需重新编译Flash对象,即通过HTML属性或JavaScript?

is it possible to change the playback speed of a flash object without having to recompile the flash object, i.e through the html attributes or javascript?

在此先感谢

推荐答案

没有,但你可以通过JavaScript(打电话给你的SWF文件中的函数<一个href="http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/external/ExternalInterface.html#addCallback%28%29"相对=nofollow> ExternalInterface的。的addCallback ),改变动画的FPS。不过,您需要在您的Flash文件中创建的功能,一旦重新编译。

No, but you can call a function within your SWF file from JavaScript (ExternalInterface. addCallback) that changes your animation's FPS... However, you would need to create the function in your flash file and recompile it once.

您也可以创建一个加载器SWF具有此功能,并通过其加载旧的Flash影片。

You could also create a loader SWF that has this functionality, and load your old flash movie from it.

这篇关于通过HTML或JavaScript更改播放flash对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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