I'm jew to Flash and I'm trying to make an animated button in Flash CS5 that has the ability to turn music on/off. I've followed different tutorials, and right now I'm trying to use an animated movie clip with an "invisible" button over it. I want the animation to swap frames when the button is clicked, and I also want the music to toggle on/off when the button is clicked.
When the button is pressed, the animation switches to say "press to turn off music" and the music turns on.
But so far, the button isn't working, and the animation won't stop switching frames even when I enter the "stop();" code.
Does anyone have any idea how to make it so that the button works together with the animation and music?
delete your invisible button. there's no need for it. your movieclip can do everything a button can do (and more).
go to the movieclip's timeline. do you have a stop() in the first frame?
I deleted the invisible button.
Yes, there is a "stop();" in the first frame.