How do I play and stop a movie clip with a single button?
Using HTML5 canvas.
I have a movie clip (mcTurn) on my timeline that plays in a loop and I have a button (button_1) that I want to use to control the movie clip with a play/stop function.
So far I got the movie clip to stop by using the following script:
this.button_1.addEventListener("click", stopAnim.bind(this));
function stopAnim()
{
this.mcTurn.stop();
}
But how do I add a play function to this code? I want the movie to resume playing again when clicked.
Back in the day I used the on(press) and on(release) functions for this, so I'm a little behind... I am not well-versed with action script 3 nor with HTML5 canvas functions.
Thank you very much!
