import oxylus.Utils; /*// the instance name of the mp3 player is "Mp3Player_mc" // SETUP PLAYER // set player width in pixels (at least 300 px) Mp3Player_mc.width = 260; // set autoLoad (Boolean value) // if true, the mp3 file will begin loading automatically // if false, the mp3 fille will begin loading when the play button is pressed Mp3Player_mc.autoLoad = true; // set autoPlay (Boolean value, true/false) // if true, the mp3 file will start playing automatically when loaded, if autoLoad is also true // if false, the mp3 file will start playing when the play button is pressed Mp3Player_mc.autoPlay = true; // set repeat (Boolean value, true/false) // if true, after all mp3 files have played, it will start from the begining, or replay the song if only one mp3 file Mp3Player_mc.repeat = true; // set initial volume (Number between 0 and 1, where 0.5 means 50%) Mp3Player_mc.volume = 0.7; // SET FILE/FILES from xml var dat:Array = new Array(); // xml object var xml:XML = new XML(); xml.ignoreWhite = true; xml.onLoad = function(s:Boolean) { if (!s) { trace("Error loading xml !"); return; } trace("xml: "+xml); var n:XMLNode = xml.firstChild.firstChild; for (; n != null; n = n.nextSibling) { dat.push(Utils.parseSettingsNode(n)); } // set player data Mp3Player_mc.setData(dat); } // load the xml xml.load("mp3player.xml"); */