voglio poter stoppare la musica di sottofondo, mi funziona correttamente, ma piccolo problemino, mi stoppa tutti gli altri suoni, tipo quelli sui pulsanti e 'audio dei video!
vi riporto il codice sperando in un vostro aiuto.
sul mc CONTROLLO
onClipEvent (load)
{
_root.soundstatus = "on";
_root.mySound = new Sound(_level0);
maxvolume = 100;
minvolume = 0;
}
onClipEvent (enterFrame)
{
if (_root.soundstatus == "on") {
step = 5;
} // end if
if (_root.soundstatus == "off") {
step = -5;
} // end if
maxvolume = maxvolume + step;
if (maxvolume > 100) {
maxvolume = 100;
} // end if
if (maxvolume < 0) {
maxvolume = 0;
} // end if
_root.mySound.setVolume(maxvolume);
}
sul bottone STOP
on (release){
gotoAndPlay(2);
_root.soundstatus = "off";
}
aiutatemi!