kax - this is way out of my league, dunno squat about xml!!!
fluid - thanks for the fla, it’s a bit too simplictic for what i’m looking for.
i found this great fla on flashkit (attached).
Only problem is i can’t figure out how to debug it!!!
there’s an array called links, and this is where i’m stuck.
i need set variables when the user clicks the buttons, not launch new urls.
have a look and see if you guys can find a way to simplify it a little.
p.s. i am useless with arrays:hair: maybe it’s time to learn!!!
ok. well maybe it’s better if i tell you what i want.
I want a hierarchical menu (i think that’s the name) where your have 5 top menus. now for 3 of those top menus, i want sub menus (which can be change easily i.e. if i need to add extra items).
So for the parts of the menu where there is now sub, when you click that button, any other open sub menus close and i can manipulate what child movie is loaded in (or set a variable to define some action).
when there is a sub-menu, i want this to expand when that top button is pressed, and again when the sub is pressed, i want to load a movie etc.
that’s basically it, but i’m getting really lost in the code for that fla i posted, and i want a system that is easy to design and maintain, and woun’t leave me with no hair!
I dont get it… thats exactly what that file does. Its easy to customize, easy to change the links and number of sub movies, you just need to change the arrays and youll have as many sub menus as you want. If you want to load an swf instead of launching a HTML page, change the links array and set a swf for each submenu button. The action on the sub menu button is probably a getURL action. Replace for a loadMovie and you should get it working.
ok, that’s what i thought as well. And there is a get url inside the sub menu mc. But what if just want to define a varialbe?
like when u click submenu 3, _root.Loaditup =3;
I did some tests with this and got nowhere. It’s frustrating because i almost get it, but i’m just not proficient enough to figure it quite out!
If you can help, please do!
when the user clicks the buttons, i want to do some kinda of transition over the current content, then load the new movie, then set some transition to reveal the new content.
If I were in your shoes, I’d learn how to get the menu working and make my own. It’s way easier to edit something you made than customizing someone elses work. Just my two cents. =)
kax, just read your post. i agree, once i get the principles, i will design my own and comment it properly. But as always i have a tight deadline and little time to develop my own code. So i gotta get this to work asap or scrap it and do something else. If only clients gave you time to develop your work rather than demanding something NOW!!!
guys, thanks for helping me, this forum is really good, and i promise to continue helping others when i can.
Why are you defining those variables? Dont you just want to load a new movie when clicking a sub menu item? If so, fill the links array with whichever movie you want each button to load.
no well the whole thing is that i don’t just want to load in different movies. I want to execute a variable so that i can design a transition before loading in another movie. I don’t just want to replace the current loaded movie straight with another one.
This way the site looks more slick, and the design is very minimalist, so this kinda thing helps to assert the quality of the site.
Anyways that doesn’t answer my previous question, how to define a variable when there is no sub-menu?