PDA

View Full Version : Menus And Sub-Menus And Sub-Sub-Menus... Need Help.


Alex
02-27-2003, 02:37 PM
Hi There,
I know a similar question was just asked, but I couldn't understand the answer. Hope someone can point me in the right direction.

Okay. I'm trying to make a Navigation-System 4-levels deep. Meaning:

Menu A -------------- Menu B ---------------- Menu C ---------------- Product

Thus, you have various options in Menu A, depending on what you choose, various options will appear along with a new Menu B, from which you'll make a selection and Menu C will appear, etc. etc.

I was thinking of using a clip event like the following:

---onClipEvent (load) {
_level0.posy = ["1162", "902", "620", "338", "122", "-166", "-434"];
_level0.trigger=0
}
onClipEvent (enterFrame) {
this._y = this._y+(_level0.posy[_level0.trigger]-this._y)/.8;
---}

Alex
02-27-2003, 02:44 PM
(my question was cut off, here's the rest...)


To put all of Menu B in a movie clip, and putting the triggers on Menu A, on each of the buttons:

on (release) {
_level0.trigger = 0;
}


I could then put all of Menu C in a Movie Clip, on level1, and trigger it with the buttons in Menu B.

And I suppose I could repeat this process for Menu D...

My Questions are:

Will multiple Levels Work like this? Am I missing something? I've tried triggering multiple events on different levels off of the same HIT before, and failed. Do I have to name something?

Is there a better way to do this? Don't forget, I need the menus invisible until they're triggered.

How will I structure it so the menus disappear when you skip back two or three levels? Say you're on Menu D and you click a Main Section in Menu A, sure that will change Menu B, but what about C and D?

Can I structure it so every button resets all the levels after it?

If I do it like this, I'll end up with a sprawling structure of Movie Clips, widenig exponentially, and Menu D is going to be a giant 60-item Clip.

There must be a better way.