Reputation: 1
I'm trying to get a movie clip to play when clicked.
square.addEventListener(MouseEvent.CLICK, playME);
function playME(event:MouseEvent):void
{
gotoAndPlay("play");
}
that is the code i'm using in my scene, and I have a play label in the movie clip.
I don't know how to link the action in the scene to the label in the movie clip?
I did it somehow but undid alot of the work and now I can't remember how to do it..
Upvotes: 0
Views: 2465
Reputation: 1714
If the square
is the MovieClip
you want to play, use square.gotoAndPlay("play");
Upvotes: 1