开发者

Play and Stop Flash from JQuery?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜