I want to make a movieclip button that starts and stops the same animation. This is what I have and it obviously doesn’t work. Any ideas?
button_mc.addEventListener(MouseEvent, CLICK, playAnim);
button_mc.addEventListener(MouseEvent, CLICK stopAnim);
function playAnim(e:MouseEvent):void
{
animation_mc.play();
}
function stopAnim(e:MouseEvent):void
{
animation_mc.stop();
}
I’m a newby. Thanks.