PDA

View Full Version : How can I control the main timeline from within a movieclip



fs_tigre
May 20th, 2009, 08:25 PM
Hi,

How can I access the main timeline from inside a MovieClip. In short words I would like to be able to move the main timeline from a MovieClip, for instance if I have a MovieClip called myMc and I want the main timeline to gotoAndStop in frame (3) when myMc is done paying.

How can I control the main timeline within a MovieClip?

Thanks

rondog
May 20th, 2009, 08:26 PM
(this.parent as MovieClip).gotoAndStop(3);

fs_tigre
May 20th, 2009, 09:13 PM
Thank you! For some reason it didn't work.

This is the code I end up using and it is working.


MovieClip(root).gotoAndPlay(3);