                var myListener = new Object();
                /**
                 * Initialisation
                 */
                myListener.onInit = function()
                {
                    this.position = 0;
                };
                /**
                 * Update
                 */
                myListener.onUpdate = function()
                {
                    
                    var isPlaying = (this.isPlaying == "true");
                    document.getElementById("playerplay").style.display = (isPlaying)?"none":"block";
                    document.getElementById("playerpause").style.display = (isPlaying)?"block":"none";
                    
                };
                
                function getFlashObject()
                {
                    return document.getElementById("myFlash");
                }
                function play()
                {
                    if (myListener.position == 0) {
                        getFlashObject().SetVariable("method:setUrl", "sound/test.mp3");
                    }
                    getFlashObject().SetVariable("method:play", "");
                    getFlashObject().SetVariable("enabled", "true");
                }
                function pause()
                {
                    getFlashObject().SetVariable("method:pause", "");
                }
                function stop()
                {
                    getFlashObject().SetVariable("method:stop", "");
                }
                function setPosition()
                {
                    var position = document.getElementById("inputPosition").value;
                    getFlashObject().SetVariable("method:setPosition", position);
                }
                function setVolume()
                {
                    var volume = document.getElementById("inputVolume").value;
                    getFlashObject().SetVariable("method:setVolume", volume);
                }
