Clicks

Is there an actionscript that STOPS the music on FIRST CLICK, then RESUMES on the 2nd Click? So everytime you click, SOUND STATES turns ON & OFF?

you can use a variable for that…

myButton.onRelease = function() {
if (!playing) {
mySound = new Sound();
mySound.attachSound("mySound");
mySound.start();
playing = true;
} else {
mySound.stop();
playing = false;
}
}

:wink: =)

ey,

KaX, thanks! Although I managed to solve it by the Easy Way, with the use of TIMELINE…hehehehe, Ill try urs style instead. Thank you man!!

ok =)

no problem :wink: