
Код:
var my_sound:Sound = new Sound();
var cur_offset:Number = 0;
my_sound.attachSound("Music");
Pause_btn.onRelease = function() {
trace("Воспроизведение остановлено.");
_root.cur_offset = my_sound.position;
my_sound.stop();
};
play_btn.onRelease = function() {
trace("Воспроизведение начато.");
my_sound.start(_root.cur_offset, 1);
};