# \[mx2004\] Control Main Timeline From Button Inside Movieclip

**URL:** <https://forum.kirupa.com/t/mx2004-control-main-timeline-from-button-inside-movieclip/69390>\
**Category:** flash\
**Created:** [November 3, 2004, 11:49pm UTC](https://forum.kirupa.com/t/mx2004-control-main-timeline-from-button-inside-movieclip/69390 "2004-11-03T23:49:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ORCA498](https://avatars.discourse-cdn.com/v4/letter/o/53a042/32.png) [@ORCA498](https://forum.kirupa.com/u/ORCA498)\
**Post date:** [November 3, 2004, 11:49pm UTC](https://forum.kirupa.com/t/mx2004-control-main-timeline-from-button-inside-movieclip/69390/1 "2004-11-03T23:49:06Z")

</div>

I’ve created a movieclip with buttons inside that I want to use to navigate to different scenes on the main timeline. I have created a function() that loads the button movieclip into the main timeline, but if I try to write a function() to activate the button and move the main timeline to a different scene/frame label it doesn’t work. I have tried various things:

navBack\_mc.book\_btn.onRelease = function() {  
\_root.gotoAndStop(“book1”);  
}

I put the code above on the main timeline. It doesn’t seem to work. Basically, I could put just an on(release) handler on the buttons, but I wanted to try to keeping all the AS in one place if I can.

Thanks in advance.
