hey guys…still my menu doesn’t work as I would like…
all I want is to collapse when I click on another menu item, which expands…
right now when I click everything stay expanded…I want it more dynamic…
thanks…
I’ve attached the file for those who want to look at it…
thanks for your welcome…I’m still too busy to spend enough time with you guys…but I will…
anyway could you please have look at the file I posted on the forum. regarding a dynamic menu…
thanks for your help…
sub0**
Man, are you a mac user?
Cause when I try to open your fla in flash I get an error message:unexpected file format
If you´re not a mac user try posting again with a different file name.
hey, I’m a mac user…but it should be ok…
anyway this is the code:
MenuArray=new array();
MenuArray[1]=menu1;
MenuArray[2]=menu2;
MenuArray[3]=menu3;
MenuArray[4]=menu4;
MenuArray[5]=menu5;
MenuArray[6]=menu6;
Still can’t open the file, I get the same error, however looks like you are trying to create a menu similar to the one I did not too long ago you might check out my fla in this post http://www.kirupaforum.com/showthread.php?s=&threadid=8962 see if that will help you any.
see if i can post the file you e-mailed me for people to look at.
You could try to save the currently open menu name to a variable then use that variable to determine which one to close if one is open when another is clicked.
Oh d00d… The power of arrays are incredible… hehe…
Especcially when creating games… It’s imperative that you know arrays…
As for your problem… I have no clue… I haven’t looked over it… For a dynamic menu though I don’t think you really need arrays… lol…
Check this out… And Make it simpler on you…
Step 1 :: Make a frame with the menu unexpanded on it and make that frame a button.
Step 2 :: Make another duplicate frame or a movie clip with your menu expanded out on it.
Step 3 :: Put the proper onClick attachMovie or duplicateMovieclip in that area. Then you can just set it up if a user gets outside that area it unexpands and goes back to the other frame with it unexpanded.
That’s a small set of clues to try and help you out… Hopefully you get the gist of what I’m saying…
Peace Out,
Marz <:}
PS :: guig0… If you wanna know a crapload about arrays and how powerful they can actually be… Gimme a shout at mentalconcepts@hotmail.com
hey thanks for the help…
I understand what you’re saying and what you’re getting at…
my point is to create something very dynamic and elastic!!!
the way you said it works fine…but it’s not what I’m looking for…
check this out and you’ll understand what I mean… http://www.fourm.com/console/
Allright… I checked it out and gte what you mean… Let’s check out your code now…
[COLOR=green]
function up(MenuNum) {
var MenuOff=offset[MenuNum]-10;
MenuNum++;
for(i=MenuNum; i<=6; i++){
MenuArray*._y-=MenuOff;
}
}
[/COLOR]
What I see here looks legit… Cept… When you look at your other code…
Allright… Don’t know if this is correct or not… But I think you might wanna change the top one to +10? Not sure actually… Looks legit from what I can see though…
I’d probably have the view the whole file file… But I don’t have MX…