Skip to main content
Participant
October 28, 2010
Question

Control the Timeline, from a button inside a movieclip.

  • October 28, 2010
  • 1 reply
  • 500 views

First off, I have a movie clip called mc_instructions.  Inside the movie clip, about 940 frames into it, a button appears called btn_ready.  I need this button to bring me to frame 3 on the main timeline when clicked on.

How can I do this in ActionScript 3.0?

I can't figure it out!

Thanks

Don

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
October 28, 2010

on frame 940:

btn_ready.addEventListener(MouseEvent.CLICK,f);

function f(e:Event):void{

gotoAndStop(3);

}