var mySound=new soundManager();function sound_LoadComplete(){document.fire("sound:loadcomplete")}function sound_Complete(){document.fire("sound:complete")}function io_Error(){document.fire("io:error")}function sound_Open(){document.fire("sound:open")}function sound_Progress(A){document.fire("sound:progress",{"percentLoaded":A})}function soundManager(){var B=this;var A;var C;FABridge.addInitializationCallback("rhadio",function(){A=FABridge.rhadio.root();C=A.getMySound();document.fire("flash:loaded")});this.playAudio=function(D){if(!C){return }document.fire("sound:preopen");C.playAudio(D)};this.playPause=function(){if(!C){return }if(C.hasAudio()){C.isPlaying()?C.pause():C.unpause();document.fire("sound:playpause",{isPlaying:C.isPlaying()})}};this.stop=function(){C.stop();document.fire("sound:stopped")};this.setVolume=function(D){if(!C){return }C.setVolume(D)};this.getPosition=function(){return C.getPosition()};this.setPosition=function(D){C.setPosition(D);if(!B.isPlaying()){B.playPause()}};this.estimatedLength=function(){return C.estimatedLength()};this.computeSpectrum=function(D,E){return C.computeSpectrum(D,E)};this.isPlaying=function(){return C.isPlaying()}}