import flash.media.Sound; import flash.net.URLRequest; import flash.external.ExternalInterface; var parameters:Object = this.root.loaderInfo.parameters; var mySound:Sound = new Sound(); function toPlay() { mySound.play(); } mySound.load(new URLRequest(parameters["f"])); ExternalInterface.addCallback("jplay",toPlay);