i have a clip with some animation inside. in the main timeline i add a listener, so when i click at the clip i want it to go to a certain frame and play. so i write
addEventListener(MouseEvent.CLICK,playAnimation);
function playAnimation(evt:MouseEvent):void
{evt.target.gotoAndPlay(“down”);}
however this doesn’t work, i get an error message that it can’t find the frame. then i tried this:
[evt.target]gotoAndPlay(“down”);
but nothing , either.
what’s the problem here? why can’t i acces that method?
if you can help me i’d really appreciate it.