开发者

Play and Stop Flash from JQuery?

开发者 https://www.devze.com 2023-03-15 20:35 出处:网络
Is there any way to play, stop or gotoAndP开发者_Go百科lay(anyframe) from JQuery?Yes you can. Here is generic javascript code to gotoAndPlay:

Is there any way to play, stop or gotoAndP开发者_Go百科lay(anyframe) from JQuery?


Yes you can. Here is generic javascript code to gotoAndPlay:

var movie = window.document.movie;
movie.GotoFrame(24);
movie.Play();

Details here


jquery doesn't matter. You need to call flash with the AS3 ExternalInterface class. Jquery might assign a listener, but the call itself is just vanilla javascript. Here's a good tutorial

0

精彩评论

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