开发者

Determine if a SWF (Flash) object loaded completely using JavaScript?

开发者 https://www.devze.com 2023-02-08 00:28 出处:网络
Is it possible to use JavaScript to detect whether a .swf file has loaded completely withi开发者_开发知识库n a web page?

Is it possible to use JavaScript to detect whether a .swf file has loaded completely withi开发者_开发知识库n a web page?

Assume that the .swf file is pulled from a 3rd-party website and we don't have access to its source code.


You can call movie.PercentLoaded() from Javascript.

Other useful functions are listed here: http://www.adobe.com/support/flash/publishexport/scriptingwithflash/scriptingwithflash_03.html


No, because the loading of the SWF is done by the Flash Player, not the browser, and the Flash Player doesn't expose any javascript API.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号