I have a button, "pb".
I have a movieclip, "pm".
I want the clip to play certain frames when I press the button.
I have a layer on top of every other layer, with only one frame. In the ActionScript for that frame, I have put:
stop();
pb.addEventListener(MouseEvent.CLICK, onMouseClick);
function onMouseClick(event:MouseEvent):void
{
trace("I've been clicked!");
pm.gotoAndPlay(10);
}
When I click the button, the message comes up BUT THE MOVIE DOES NOT PLAY.
What have I done wrong? This should work. I've been looking online all day and this is what everyone says to do... I'm at a loss. Thanks.