I wish to create a button to shut up background sound of a movie ; as thousand of pages in the web movie will load with background loop sound playing ;
if visitors get bored with same sound looping then there will be shut up button ; another button will put the sound playing back.
Code bellow it´s a Kirupa´s tut. picked somewhere here and has the inconvenience to start the same sound many times.
Well you need a toggle so it shouldn’t be too hard. I know I saw a really good toggle today but I can’t seem to find it, so I’ll just go with something a little longer.
place this in frame one of the movie
mmktSound = new Sound(this);
mmktSound.attachSound(“clavinet_loop”);
mmktSound.start(0, 99);
soundToggle=true;