
Код AS3:
var _sound = new Sound();
var _channel:SoundChannel;
_sound.load(new URLRequest("song.mp3"), new SoundLoaderContext(290000));
_channel=_sound.play();
_channel.addEventListener(Event.SOUND_COMPLETE, onComplete);
stop_.addEventListener(MouseEvent.CLICK, stop_f);
play_.addEventListener(MouseEvent.CLICK, play_f);
function play_f(e:Event){
_channel = _sound.play();
trace("play");
}
function stop_f(e:Event){
SoundMixer.stopAll();
}
all_play.addEventListener(MouseEvent.CLICK, all_play1);
function all_play1(e:Event){
_channel = _sound.play();
removeChild(all_play);
}
function onComplete(e:Event){
trace("complete");
}
дожидаться загрузки звука по-моему не обязательно, можно канал сразу создавать