Question
Toggling a Play/Pause Button in an FLA Animation
I'm having difficulty adding a Play/Pause button to an FLA
animation that I've created. The animation is a frame-by-frame clip
with motion tweens (rather than an FLV file). I'd like the
Play/Pause button to toggle between a PLAY state and a PAUSE state
depending on whether the animation is already playing or paused.
(It will automatically play when the user begins viewing it, so the
first button state should be at PAUSE.)
I've sucessfully created the button (actually as a movie clip with the two states). I've also got the button to pause and play the animation--but I'm unable to get the button (movie clip that is) to actually toggle between the two states. Can anyone tell me a good script to use for this type of control?
The script I'm using to get the animation to play and pause is listed below.
As usual, I'm willing to try a brand new script or simply modify the existing script. Please let me know if you need any other information.
I've sucessfully created the button (actually as a movie clip with the two states). I've also got the button to pause and play the animation--but I'm unable to get the button (movie clip that is) to actually toggle between the two states. Can anyone tell me a good script to use for this type of control?
The script I'm using to get the animation to play and pause is listed below.
As usual, I'm willing to try a brand new script or simply modify the existing script. Please let me know if you need any other information.
