Im new to this flash and I am using as2 for the action script I wanted to know if there are any good tutorials on how to create a toggle button so far this is all I have.
on (release) {
play ();
}
on (release) {
stop ();
}
I wanted so that when you hit playit would start the animation but showing the pause button and vice versa.
You need to keep track of the state of your toggle: ie whether the animation is playing or not when the button is pressed.
So the code on your button might be:
And then in the main timeline, you could define the toggleMe() function like this:
[EDIT: changed the code to control the main timeline]