Matt
Matt

Reputation: 22941

embed flash in the background (hidden on the page)

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

Upvotes: 1

Views: 548

Answers (2)

Tim
Tim

Reputation: 853

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

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

Upvotes: 0

YOU
YOU

Reputation: 123917

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

Upvotes: 2

Related Questions