Hello there,
I am trying to modify a mouse activated horizontal slidemenu script but don't really know how to accomplish it. 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. Also the original script was only a menu bar which duplicated one button not a series of images (buttons) like I have changed it to be. I think this is one of the problems because one image links to the menu but none of the others do.
The code on the button is:
Code:
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:
Code:
// --------------------------------------------
// 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. It's been three weeks now that I've been struggling with it, on forums and I just can't find a solution!
Thanks very much for your support,
Niki