DESPERATLEY NEED HELP!! Nav Bar is out of control
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 (firstname.lastname@example.org) i will send you the URL to view and see what the heck I'm talking about.
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.
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?
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...
_x, _y moves things oO
//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
ok.. good point... here is what I'm talking about...
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...
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
I've got it figured out. Thanks for your input. Much appreciated.
Click Here to Expand Forum to Full Width