ok i have a mc that contains 4 buttons that make up an entire image. i want it to be an on/off music button (single button for both on and off). when the music stops, i need the mc to stop animating. when the music is on it is looping an animation. any help? thanks a lot.
on (release) {
Status = !Status
if(Status == true) {
var yourSound:Sound = new Sound()
yourSound.attachSound("theSound")
yourSound.start()
yourMC.play()
} else {
stopAllSounds()
yourMC.stop()
}
}
Hope that helps
Eric
__________________
Eric Hainer Unleaded Software
970.581.3387
Email: Eric followed by the AT symbol, unleaded software (one word) DOT com Denver Web Design