A Flash Developer Resource Site

Results 1 to 8 of 8

Thread: DESPERATLEY NEED HELP!! Nav Bar is out of control

  1. #1
    Junior Member
    Join Date
    Aug 2004
    Posts
    5

    DESPERATLEY NEED HELP!! Nav Bar is out of control

    Hi everyone,

    PLEASE PLEASE... I NEED TO SOLVE THIS TONITE!!

    I need some serious help here. I'm working on a site with a horizontal nav bar. The nav bar contains 6 buttons.

    [ button 1 ] [ button 2 ] [ button 3 ] [ button 4 ] ...

    the position of button 1 is the MAIN position

    let's say a user clicks on button 1.. in the interface a box drops down in that position to reveal more information.

    now let's say user clicks button 2... i want button 2 to literally "slide" into the spot where button 1 is (the MAIN position)and button 1 to slide where button 2 was... literally trade places...

    now say the user clicks on button 4... button 4 slides into the MAIN position (remember that is where button 2 is at currently) and button 2 to slide where button 4 was...

    so essentialy i want any button clicked to SLIDE into the MAIN position and swap places with the button that is currently residing in that position..

    does that make sense?

    at moment, I was literally animating it out... but I didn't realize all of the combinations that the buttons could have that the movie has grown into almost 8000 frames... what a headache.

    I need help desperately... is there an easier, more logical way of doing this or did I dig myself into a hole.?

    if you email me directly ([email protected]) i will send you the URL to view and see what the heck I'm talking about.

    Thanks everyone

    Clay

  2. #2
    Senior Member
    Join Date
    Jul 2004
    Posts
    107
    This isn't really hard at all from what I know, all you need to do is give each button a instance, then in the main context they are held in write some code that checks the state that is currently being used, and from there you can determine if something needs to be changed.

  3. #3
    Junior Member
    Join Date
    Aug 2004
    Posts
    5
    well that's what I figure but I'm pretty ActionScript illiterate and not sure... what to check for..

    check the position of button 1 verses button 2 and if so... make them switch places....

    Is there anything in the FlaskKit archives that resembles what I'm trying to do? I've spent hours going through the MENU movies and the NAVIGATION movies and can't anything like what I need to do...

    maybe there is a reason why I can't find it... is it just to darn hard?

    Thanks

    Clay

  4. #4
    Junior Member
    Join Date
    Aug 2004
    Posts
    5
    I'm this close to offering someone $$ to help me finish this part of the project...

    all I need are the 6 buttons coded so that any button that is clicked slides (literally slides) into the Main position and the button that is there now takes the place of the one sliding...

  5. #5
    Senior Member
    Join Date
    Jul 2004
    Posts
    107
    _x, _y moves things oO

    onClipEvent(enterFrame) {
    //Stuff in here is ran every frame sec.
    }

    is that enough? Because again, you have been pretty cryptic at explaining / showing what you wanted :X

  6. #6
    Junior Member
    Join Date
    Aug 2004
    Posts
    5
    ok.. good point... here is what I'm talking about...


    http://www.themactech.com/okeefe_comm

    once the Nav bar appears.. click on the buttons to see what I'm talking about...

    I'm removing the little leap frog effect but the buttons sliding back and forth is what I want I'm trying to do in Action Script rather than animating the whole thing...

    thanks

    Clay

  7. #7
    Senior Member
    Join Date
    Jul 2004
    Posts
    107
    I'm confused now, what is wrong with this picture again? :P

    So you want the buttons to basically move over, to where? The 2nd position? I think this would require some complicated math.. not sure though :P

  8. #8
    Junior Member
    Join Date
    Aug 2004
    Posts
    5
    I've got it figured out. Thanks for your input. Much appreciated.

    Thanks

    Clayton Lewis

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