Intro
AS3 Mini Music Player is a compact and sturdy sound controller. It is made to fit perfectly in your flash project (drag&drop) but can also be loaded in HTML or used stand alone. You set it up simply by using one line of code var mc:MusicController= new MusicController(“1.mp3”,”on”); where 1.mp3 is the song you want to play and on is the autoplay status.Features
- lightweight – only 14 kb
- AS3 Full OOP programming
- can be setup with flashvars
- unlimited pictures
Updates
UPDATE 1 .1
Added the possibility to set up the player directly from HTML (no fla editing requierd) – with flashvars. Contact me if you want this version.
Simple setup from AS3
mc= new MusicController("1.mp3","on");// params : song, autoplay(on/off)
addChild(mc)
Simple setup from Flashvars
<script src="swfobject.js" type="text/javascript"></script>
<div id="flashPlayer">
This text will be replaced by the flash music player.
</div>
<script type="text/javascript">
var so = new SWFObject("musiccontroller.swf", "mymovie", "26", "26", "7", "#f7f7f7");
so.addVariable("autoPlay", "no");
so.addVariable("soundPath", "1.mp3");
so.write("flashPlayer");
</script>
Warning : version which is setup by FlashVars is not included, contact me if you want it.
