[mx] any idea how to design a menu like on paul smith?

Well first i need to understad how exactly you plan to use that variable and how you will structure the transition. Are you familiar with transitions?

ps: yes, im a drum and bass fan :slight_smile:

hmm, tough question. I haven’t totally figured that out!(i’m useless).

I will probalby have a timeline with a content mc. Inside that i will put a transition then have a ā€œholdingā€ frame where i will load in the new movie:

i.e. _root.content.holder.loadMovie (ā€œmovieā€ + _root.Loaditup + ā€œ.swfā€);

or similar, then when that movie has completely loaded, the timeline will contiue with the rest of the transition.

so ā€œoutroā€ >holding frame >movie loaded > ā€œintroā€ of new movie.

But i can figure this out myself, just need to have some control over what happens when the user clicks the sub-menu buttons, and in some case where there is no sub menu, what happens when the user clicks the that top level button.

so that’s basically it. If you know a better way to do the transitions, i’m all ears for that too (although i may be able to design a couple of functions that deal with that transition without using the timeline at all, working on something

Hmm tough topic… i have done something similar… http://www.kirupa.com/developer/mx/preloader_transition.htm

Ok, lemme start thinking. On the buttons that doesnt have sub-itens:
I would assign a value to a variable. Then call transition mc to play. On the transition mc i would have an action to load the variable exactly as you mentioned before.

Now, the buttons with sub itens:
I would make the same as i did with the other buttons, except that i would assign the value to the variable inside the links array. Then call transtion mc and bla bla bla…

right, so how would you assign a value to a variable on the buttons without the sub-items? It’s gotta be in one of those function right? but how to do?

As for the transition, i had a look at this tut and it is a good starting point, but i think i am a little further along with regards this.

thanks for the help, if you figure out how to do the things, it would be wicked!

i’m off to bed - it’s 2am here - but i’ll check in tomorrow.

thanks dude,

kd

Open the blue button. There are a few actions on it: [AS]on(release){
_root.tasto=tasto;
_root.traguardi();
_root.spegni();
gotoAndStop(5);
// assign the variable here
}[/AS]

Anyway to turn that badboy to make it open sideways?

claudio,

Your suggestion won’t work because you assume that only one of the buttons has no sub-menu.

lemme show you how i want it:

homepage --> NO SUB

about --> 2 SUBS
profile
press

Collections --> 3 SUBS
collection1
collection2
collection3

Stock --> 7 SUBS
stock1
stock2
stock3
stock4
stock5
stock6
stock7

Contact --> NO SUBS

So you see, if i put the variable on the actual button, then every time i press any blue button, that variable will have the same value.

I’m thinking that i need to somehow change the spegni function
or maybe add another array just for the top buttons.

I am getting somewhere, but this is hard!

If you think of anything let me know

thanks,

kd

Ok now i got your point…

Hmm ok, ive added a few lines of code and it seems to be working as you want. There are other ways to check if the button has or not sub itens, but since its not my code i wont crack my head over it. Heres the file.

*Originally posted by misterpaul *
**Anyway to turn that badboy to make it open sideways? **
Yes it is possible.

hehe, go go go claudio! you can do it!

I dont think im up to the challenge… :stuck_out_tongue: :stuck_out_tongue:

Im not sure if this will help , but if you look in your flash folder on your hard drive (C:\Program Files\Macromedia\Flash MX\First Run\Templates\Menus) , they have one already built that looks similar to the one on the page you want to mimic. All you have to do is customize it. JUST A THOUGHT…

I didnt even know that folder :stuck_out_tongue: :stuck_out_tongue:
thx for the info