var myListener = new Object(); /** * Initialisation */ myListener.onInit = function() { this.position = 0; }; /** * Update */ myListener.onUpdate = function() { if (this.isPlaying == "true" && this.player != undefined) { this.player.setAttribute("class", "playericondetail playing"); } else if (this.player != undefined) { this.player.setAttribute("class", "playericondetail"); this.player = undefined; } }; function getFlashObject() { return document.getElementById("myFlash"); } function playfile(file, player) { if (myListener.position == 0) { getFlashObject().SetVariable("method:setUrl", file); myListener.player = player; } getFlashObject().SetVariable("method:play", ""); getFlashObject().SetVariable("enabled", "true"); } function playpl(playlist, trackno) { } function pause() { getFlashObject().SetVariable("method:pause", ""); } function stop() { getFlashObject().SetVariable("method:stop", ""); }