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

This is a discussion on "How to target main timeline from within 3 mcs in a slidemenu?" within the Flash & Multimedia Forum section. This forum, and the thread "How to target main timeline from within 3 mcs in a slidemenu? are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Flash & Multimedia Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old May 7th, 2007, 19:35
Junior Member
Join Date: May 2007
Location: france
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to nikising Send a message via Skype™ to nikising
Exclamation How to target main timeline from within 3 mcs in a slidemenu?

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:

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"):

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
Reply With Quote

  #2 (permalink)  
Old May 7th, 2007, 20:26
Multimedia Specialist
Join Date: Apr 2007
Location: Arizona
Age: 25
Posts: 666
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Sgaspar11
Re: How to target main timeline from within 3 mcs in a slidemenu?

Hmm, don't really see any problems. But try simplifying it even more:

If the large picture is on frame (4) of the original timeline just do this:

on (release) {
_root.gotoAndStop(4);
}

(4) being the frame.


EDIT: It also might help to see the file, sometimes this stuff is laid out strange.

Have you tried that?
Last Blog Entry: Yay!? (Oct 8th, 2007)

Last edited by Sgaspar11; May 7th, 2007 at 20:29.
Reply With Quote
  #3 (permalink)  
Old May 7th, 2007, 20:33
Junior Member
Join Date: May 2007
Location: france
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to nikising Send a message via Skype™ to nikising
Re: How to target main timeline from within 3 mcs in a slidemenu?

Hi,

Thanks for the response. Yes I tried that. I think there is a problem with the original script interfering or the fact that the script is coming from within 3 mcs.

Don't know, its a nightmare!

Niki
Reply With Quote
  #4 (permalink)  
Old May 7th, 2007, 20:37
Multimedia Specialist
Join Date: Apr 2007
Location: Arizona
Age: 25
Posts: 666
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Sgaspar11
Re: How to target main timeline from within 3 mcs in a slidemenu?

Yeah the 3 different MC's and all the other stuff makes it hard.

If you post the file I can take a look at it for you. (or PM me and I'll send you my email address.)

Scott
Last Blog Entry: Yay!? (Oct 8th, 2007)
Reply With Quote
  #5 (permalink)  
Old May 7th, 2007, 21:09
Junior Member
Join Date: May 2007
Location: france
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to nikising Send a message via Skype™ to nikising
Re: How to target main timeline from within 3 mcs in a slidemenu?

Hi Scott,

Did you get my PM? The forum site is doing strange things

Niki
Reply With Quote
  #6 (permalink)  
Old May 8th, 2007, 00:39
JacobHaug's Avatar
SuperMember

SuperMember
Join Date: Dec 2005
Location: On Internet
Posts: 4,859
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to JacobHaug Send a message via MSN to JacobHaug
Re: How to target main timeline from within 3 mcs in a slidemenu?

hmmm, what is the forum doing?
Reply With Quote
  #7 (permalink)  
Old May 8th, 2007, 11:18
Junior Member
Join Date: May 2007
Location: france
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to nikising Send a message via Skype™ to nikising
Re: How to target main timeline from within 3 mcs in a slidemenu?

I was trying to PM and I would the page wouldn't load. Just a white screen. Could've been something with my connection too I guess.
Reply With Quote
  #8 (permalink)  
Old May 8th, 2007, 14:47
Multimedia Specialist
Join Date: Apr 2007
Location: Arizona
Age: 25
Posts: 666
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Sgaspar11
Re: How to target main timeline from within 3 mcs in a slidemenu?

I am looking at your file today, I'll let you know if I find anything.
Last Blog Entry: Yay!? (Oct 8th, 2007)
Reply With Quote
  #9 (permalink)  
Old May 8th, 2007, 16:12
Junior Member
Join Date: May 2007
Location: france
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to nikising Send a message via Skype™ to nikising
Re: How to target main timeline from within 3 mcs in a slidemenu?

Thanks so much, Scott!

Niki
Reply With Quote
  #10 (permalink)  
Old May 12th, 2007, 09:18
Junior Member
Join Date: May 2007
Location: france
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to nikising Send a message via Skype™ to nikising
Re: How to target main timeline from within 3 mcs in a slidemenu?

Hi Scott,

I guess you didn't find a solution or..? Just wondering how it's going.

Thanks,
Niki
Reply With Quote
  #11 (permalink)  
Old May 18th, 2007, 02:25
Multimedia Specialist
Join Date: Apr 2007
Location: Arizona
Age: 25
Posts: 666
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Sgaspar11
Re: How to target main timeline from within 3 mcs in a slidemenu?

Evening,

So I've been looking at the file, it seems to work on some of the pictures but not all of them.

Is this the case when you test it as well?
Last Blog Entry: Yay!? (Oct 8th, 2007)
Reply With Quote
  #12 (permalink)  
Old May 18th, 2007, 12:22
Junior Member
Join Date: May 2007
Location: france
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to nikising Send a message via Skype™ to nikising
Re: How to target main timeline from within 3 mcs in a slidemenu?

Hi Scott,

Ya I think because the original script maybe duplicated just one button as it was only a menu not an image menu and so perhaps the script only calls from that button which is duplicated every like 7 times. I don't know its really frustrating. But it works if each new image is a new scene but I don't want that because the menu and background is deleted in each scene.

Anyways thanks for looking at it,

Niki
Reply With Quote
Reply

Tags
preloading site, preloading, target, timeline

Thread Tools

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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Target _blank Jack Franklin Web Page Design 12 Oct 12th, 2007 09:55
Target Window Name jayaramgussy Web Page Design 9 Sep 20th, 2007 22:44
Control Main Timeline Using a Function (Jumping to a different frame using labels) JamesHatter Flash & Multimedia Forum 1 Jun 27th, 2007 21:02
main timeline volume control? edd_jedi Flash & Multimedia Forum 1 Jun 14th, 2007 20:40
Frameset target help please charter Flash & Multimedia Forum 4 Mar 28th, 2004 10:05


All times are GMT. The time now is 04:37.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43