View Full Version : Drop down menu questions
bkohsl
06-07-2005, 07:00 AM
Hello.
I managed to create a drop down menu as a movie clip in Flash MX 2004. But I have a couple of questions.
1) Is there a way to do a drop down menu, without it being a movieclip? IE, it's a dropdown menu on a scene, not a movieclip of a dropdown menu that is placed in a scene?
2) Is there a way for a the buttons in a dropdown movieclip to target scenes? I have tried the usual actionscripts for buttons, but it leads me nowhere. And all the tutorials I see just lead me to a specific frame of a movie, which is not what I want. I want to target a scene with the buttons, not frames of a movieclip.
Any and all help would be appreciated. Thank you.
Gibberish
06-07-2005, 04:30 PM
1. This would be pointless as the dropdown will only be accessible in actionscript if it’s a movieclip.
2. Scenes are frames. When you export your swf it has one huge timeline of all scenes. If you label frame one of your scene you can call that through gotoAndPlay();. Scenes are really nothing but a way to seperate information on the development side and should not be targeted as real entities in the end result. Use frames or frame labels.
bkohsl
06-15-2005, 11:49 PM
Thank you for the explanation, but it's still posing problems for me.
OK, so I created a drop down menu movieclip. The dropdown functions work fine, when placed as a movieclip in the main movie.
But the secondary buttons still will not lead me to a specific frame (with frame label) on my main movie (called index). An example of the coding on one of the buttons:
on (release) {
//Movieclip GotoAndStop Behavior
index.gotoAndStop("wp_ts");
//End Behavior
}
There is a frame with a frame label called wp_ts on then main movie. How do I get this seconday dropdown menu button to go to this specific frame on the main movie?
I used this:
on (release) {
//Movieclip GotoAndStop Behavior
this.gotoAndStop("wp_ts");
//End Behavior
}
but I think it just targets frames of that dropdown menu movieclip, which of course, doesn't contain the content I want.
Any and all help would be appreciated. Thank you.
Gibberish
06-16-2005, 05:06 AM
is index a movieclip in your main movie or is index the main movie itself? As in index.swf.
If it is the latter then use:
on (release) {
//Movieclip GotoAndStop Behavior
_root.gotoAndStop("wp_ts");
//End Behavior
}
If the first then use:
on (release) {
//Movieclip GotoAndStop Behavior
_root.index.gotoAndStop("wp_ts");
//End Behavior
}
bkohsl
06-16-2005, 04:55 PM
That was it (the latter). Of course, I then had to go in and re-script all the buttons, but it works now. Thanks a million.
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.