Hello! My desired action in my future website is a meny that has a smooth function, that lets the button the user clicks move to the top, and the button that is on top should be moved to the bottom, and the buttons in the middle should adjust so that the distances between each button is the same. Here´s my hypothyses:
My desired code lookes like:
_root.mybutton_btn.onRelease = function () {
if(myButton_btn._x < myButton2_btn._x){
myButton_btn._x = myButton2_btn._x;
myButton2_btn._x = myButton_btn._x; //they should switch place, I know the code is wrong...
}
}
// and the otherway around depending on which button is on top…
I would appreciate if you helped me ease the transition…
Anyways, have been looking for tuturials for weeks now, but I can´t find anything… I am kind of a beginner with AS 2 but I´m working hard to learn it, so I will be very greatful for any help I can get! =)