开发者

embed flash in the background (hidden on the page)

开发者 https://www.devze.com 2022-12-13 03:15 出处:网络
I\'m trying to make an mp3 player that passes javascript events to a flash file. I\'m not very saavy in flash so this may be a simple question.. but how do you make a \"movie-less\" flash file? Is it

I'm trying to make an mp3 player that passes javascript events to a flash file. I'm not very saavy in flash so this may be a simple question.. but how do you make a "movie-less" flash file? Is it possible to just embed an actionscript file? Because 开发者_如何学运维that is really all I need to run. Side note: What is the easiest (and fastest) way to pass params to actionscript using javascript?

Thanks, Matt Mueller


You can compile actionscript to swf file directly, but you still need to embed in HTML just like a flash file. if you don't want others to see, put that inside <div style="display:none">...</div>

Here is the actionscript compilers

http://www.mtasc.org/

http://haxe.org/download


Also have a look at Jplayer. This Jquery plug-in does exactly that

http://www.happyworm.com/jquery/jplayer/

0

精彩评论

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