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.
|
|
|
|
|
![]() |
||
How to target main timeline from within 3 mcs in a slidemenu?
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
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 |
|
|
|
|||
|
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. |
|
|||
|
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 |
|
|||
|
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)
|
|
|||
|
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 |
|
||||
|
Re: How to target main timeline from within 3 mcs in a slidemenu?
hmmm, what is the forum doing?
|
|
|||
|
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.
|
|
|||
|
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)
|
|
|||
|
Re: How to target main timeline from within 3 mcs in a slidemenu?
Thanks so much, Scott!
Niki |
|
|||
|
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 |
|
|||
|
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)
|
|
|||
|
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 |
![]() |
| Tags |
| preloading site, preloading, target, timeline |
| Thread Tools | |
|
|
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 |