# How to target main timeline from within 3 mcs in a slidemenu?

**URL:** https://forum.kirupa.com/t/how-to-target-main-timeline-from-within-3-mcs-in-a-slidemenu/224944
**Category:** flash
**Created:** [May 7, 2007, 1:56pm UTC](https://forum.kirupa.com/t/how-to-target-main-timeline-from-within-3-mcs-in-a-slidemenu/224944 "2007-05-07T13:56:28Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![nikising](https://avatars.discourse-cdn.com/v4/letter/n/0ea827/32.png) [@nikising](https://forum.kirupa.com/u/nikising)
#### Post date: [May 7, 2007, 1:56pm UTC](https://forum.kirupa.com/t/how-to-target-main-timeline-from-within-3-mcs-in-a-slidemenu/224944/1 "2007-05-07T13:56:28Z")

</div>

Hello there,

I am trying to modify a slidemenu script but don’t really know how to accomplish it. The sliding menu is horizontal and slides each direction according to the mouse position. Basically, all I want is for the thumbnail photo buttons in the menu to open the corresponding photo larger above the menu. I have a series of buttons within three mcs. (this is necessary for the sliding script to work). In the original script, the button name is targeted to a label with the same name in a new scene.

The code on the button is:  
CODE

on (release) {  
gotoAndStop("/:" add eval("…:text"));  
// THIS goes to the FRAME with the name of the button you just clicked on.  
}

The MC code is:

// --------------------------------------------  
// tmi=total menu items  
// dup=new movie duplicates  
// butn=original movie button  
// --------------------------------------------  
// FIX original Button:  
butn:text = /:Menu0;  
while (Number(n)\<Number((/:tmi_2)-1)) {  
n = Number(n)+1;  
dup = “butn” add n;  
duplicateMovieClip(“butn”, dup, n);  
setProperty(dup, \_x, Number(getProperty(dup, \_x))+Number(n_getProperty(dup, \_width)));  
setProperty(dup add “/b”, \_x, getProperty (dup add “/b”, \_x) + (1));  
set(dup add “:n”, n);  
// assign button name from variables  
if (Number(n)\<Number(…:tmi)) {  
set(dup add “:text”, eval("/:Menu" add n));  
} else {  
set(dup add “:text”, eval("/:Menu" add (n-/:tmi)));  
}  
}

The problem I am having is that I don’t want to go to a new scene ( because I am only loading photos) but would like to target a label on the main menu. I have tried many ways including (my label is named “one”):  
CODE

on (release) {  
\_root.gotoAndStop(“Main” “one”);  
}

on (release) {  
\_root.gotoAndStop(“one”);  
}

on (release) {  
gotoAndStop(“Main” “one”);  
}  
on (release) {  
\_level0.gotoAndStop(“one”);  
}

But none of these work. There must be a way to do this no? Please someone enlighten me! I need all the help I can get.

Thanks very much for your support,

Niki
