Muting Flash sound via Lectora button.
January 29, 2008 12:00 AM
Mark,Well, now I need to have the audio also pause when muted and play, where it left off, when unmuted. For some reason, I cannot get that to work...any ideas.var narrSound:Sound = new Sound(); narrSound.attachSound("sndSound");narrSound.start();var sndDuration:Number = narrSound.position/1000;trace(narrSound.position);var mute = "false"; narrSound.start();this.onEnterFrame = function(){ if (mute == "false") { narrSound.setVolume(100); narrSound.start(sndDuration); } else { narrSound.setVolume(0); narrSound.stop(); } }
Discussions have been disabled for this post