Muting Flash sound via Lectora button.

var narrSound:Sound = new Sound(); narrSound.attachSound("sndSound"); narrSound.start(); var sndDuration:Number; var mute = "false"; narrSound.start(); this.onEnterFrame = function() { if (mute == "false") {  narrSound.setVolume(100);  narrSound.start(sndDuration); } else {  narrSound.setVolume(0);  sndDuration = narrSound.position/1000;  narrSound.stop(); } } That way sndDuration will hold the position of the song when it stopped playing. Edited By: Hemingway on 2008-2-6 13:58:8

Discussions have been disabled for this post