A Flash Developer Resource Site

Results 1 to 9 of 9

Thread: menu problem... need help

  1. #1
    Junior Member
    Join Date
    Oct 2000
    Posts
    19
    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

  2. #2
    Junior Member
    Join Date
    Oct 2000
    Posts
    19
    any ideas?

  3. #3
    Vox = Voice Vox98's Avatar
    Join Date
    Mar 2001
    Posts
    879
    Sorry, I dont know, but thats a nice sound your using!

  4. #4
    Junior Member
    Join Date
    Oct 2000
    Posts
    19
    thanks.
    can't a girl get any real help?

  5. #5
    Master Poo Flinger
    Join Date
    Sep 2000
    Posts
    318
    you think you could post an fla?

  6. #6
    Junior Member
    Join Date
    Oct 2000
    Posts
    19

  7. #7
    Senior Member
    Join Date
    Sep 2001
    Location
    Manhattan
    Posts
    398
    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?

  8. #8
    Junior Member
    Join Date
    Oct 2000
    Posts
    19
    yes. it holds the menu out until the mouse passes over a different menu. its an important effect for me.

  9. #9
    Master Poo Flinger
    Join Date
    Sep 2000
    Posts
    318
    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
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center