Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Coding Forum


You are currently viewing our Coding Forum as a guest. Please register to participate.
Login



Reply
Problems modifying actionscript to target main timeline from within mcs in slidemenu
Old 05-17-2007, 06:47 AM Problems modifying actionscript to target main timeline from within mcs in slidemenu
Junior Talker

Posts: 2
Name: Niki
Trades: 0
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
nikising is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Reply     « Reply to Problems modifying actionscript to target main timeline from within mcs in slidemenu
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.08298 seconds with 12 queries