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
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
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ā¦
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
thx for the info
:: Copyright KIRUPA 2024 //--