-
i'm building a menu which you can see at: http://yellowzone.net/temp/test/buttons.htm
it works 'exactly' the way i want it to, however, it seems as though the code that i've had help with caters only to "about" buttons. I was planning on building a short array of buttons such as contact, portfolio, of which all would expand as the about does.
take a look at the code:
on (rollOver) {
for (i=1;i<=_root.numberOfMenus;i++) //Checks all about buttons
{
if (eval("_parent.about" + i + ".menuSlider1")._currentframe != 1 && this._name != ("about" + i))
{
eval("_parent.about" + i + ".menuSlider1").gotoAndPlay(13)
//Scroll them back in if they are out, and not the current button
}
}
if (menuSlider1._currentframe == 1)
{
menuSlider1.gotoAndPlay(2); //Scroll out if it's not already there
}
}
thanks
-
-
Vox = Voice
Sorry, I dont know, but thats a nice sound your using!
-
thanks.
can't a girl get any real help?
-
you think you could post an fla?
-
-
MY question for you is this: Why are you going through all the touble of writing so much code just to make the buttons go in and out? I looked over your code I don't understand. Do you need that code for anything more than making your buttons retract?
-
yes. it holds the menu out until the mouse passes over a different menu. its an important effect for me.
-
i know what you're trying to achieve, i've posted an example of object recursion. when you rollover a button, it calls a function that goes through all the objects, determines if its an movieclip, and if it should be closed.
its a little quirky, really simple, and can be improved a great deal, but this fla should give you the ground work you need to get going:
http://tweekmonster.net/flash6/gnog/menu.fla
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|