private var sound:Sound;
private var chan:SoundChannel;
private function loadSound():void {
sound = new Sound(new URLRequest("http://localhost/Plans.mp3"));
chan = sound.play();
}
private function scanPosition():void {
chan.stop();
chan = sound.play(positionSlider.value/10 * sound.length);
}
private function scanVolume():void{
var trans:SoundTransform = new SoundTransform(volumeSlider.value, (panSlider.value - 5)/10);
chan.soundTransform = trans;
}