Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

More drop down menus - links within movie/menu won't work 1

Status
Not open for further replies.

DiamondLil

Technical User
Jul 16, 2002
107
US
ARRRrrrrGGGGG.

Starting new thread on this though it's related to a recent post. Slightly different issue that the last user.

(oldnewbie - I accessed that other post of yours but can't download the file to take a look...? )

Here is where I am:

When you click on the quicklinks button down at the bottom, it loads the movie symbol for the pulldown, but the links within it won't work. It shouldn't be this hard should it -the button just needs to go to a different scene...??

The flash file is here:

Can you guys help me?
 
Ok! Had a look at your file...

Quite a few scenes in this movie! Guess you'd be clobbered by those who are against the use of multiple scenes...

In your case, it's simply that you shouldn't target scene names from movie clips, but only target labeled frames in the targeted scenes...

Thus as an example, I've labeled the first frame of your
TOC #1 scene with the label toc_1 (you should avoid number only labels, or at least starting with a number, avoid caps, spaces and special characters other than the underscore...), and then changed your script on that "Paying too much..." button in your dropUP menu, to the folowing...

From...

Code:
on (press) { gotoAndPlay("TOC #1", 1);


}
To...
Code:
on(release){
    _parent.gotoAndStop("toc_1");
}

And it works fine! You should do the same for all buttons, using an unique labeled frame as a target...

Note that I've use on(release) rather than on(press), which I prefer, because as a user, I can change my mind before releasing the button, which I can't do if you use on(press)...
I'm also using gotoAndStop rather than gotoAndPlay, since the targeted scene has only one frame, and is not actually played.
I've used _parent, a relative path rather than _root (or _level0...), an absolute path, to target the main timeline on which resides the targeted labeled frame...

Hope you get it working!



Regards. Web Hosting - Web Design
01/07/07 -> OLDNEWBIE VS JOSHUA MUSSLEWHITE
 
OMG. It works. I just tried it on that one example you gave and it works.

Can't thank you enough for taking a look and for the explanation.

Yes, I inherited the file so there were a lot of things that I would have done differently (design, layout, on press vs on release on a gazillion btns, etc)

THANK YOU
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top