# Buttons w/actionscript used to navigate in maintimeline?

**URL:** https://forum.kirupa.com/t/buttons-w-actionscript-used-to-navigate-in-maintimeline/201882
**Category:** flash
**Created:** [September 25, 2006, 11:25pm UTC](https://forum.kirupa.com/t/buttons-w-actionscript-used-to-navigate-in-maintimeline/201882 "2006-09-25T23:25:54Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![welling1](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/welling1/32/2801_2.png) [@welling1](https://forum.kirupa.com/u/welling1)
#### Post date: [September 25, 2006, 11:25pm UTC](https://forum.kirupa.com/t/buttons-w-actionscript-used-to-navigate-in-maintimeline/201882/1 "2006-09-25T23:25:54Z")

</div>

I have a navigation menu that is a movieclip (menu\_mc). In the movieclip are 5 buttons. Each of the 5 buttons has 4 keyframes within the movieclip, (they’re all set at different alpha levels for a rollover effect). On each of the keyframes I’ve named each instance. For example: on the “Illustration” button, I’d have illustration\_btn labeled on all 4 keyframes.

i need the buttons, when clicked, to play a different area of the timeline, dependent on where the user is in the main timeline.

I’ve tried writing this actionscript on the main timeline in the 2nd keyframe (i have a preloader in the first) but nothing is happening.

(the movie clip instance is named menu\_mc)

this.menu\_mc.illustration\_btn.onRelease = function() {  
if(root\_currentFrame == 80) {  
gotoAndPlay(“print”);  
} else if (root\_currentFrame == 138) {  
gotoAndPlay(“illustration”);  
}  
}

???  
if anyone can direct me toward a good tutorial on navigation through a maintimeline with actionscript or any idea of what the heck i’m trying to do, please let me know!

thanks–:ponder:
