Hi,
I know this has probably been asked a billion times, but I am unsure what to search for and I am using a 56k, so every click takes hours.
Basically, I have a vertical menu with 4 buttons. When I rollover a button an arrow appears from pointing to it, when I move over another button the arrow "slides" to that button...etc..
OnRelease the arrow then sticks to that particluar button, showing which one I have clicked.
Now, when I roll over another button the arrow then slides to where I have rolled over but when I roll out it returns back to the button I clicked,
I hope this all makes sense
Your help is certainly needed and appreciated
thanks
AD
I do need a little explanation though. I understand that you set the starting postion and then when you roll over the button you are telling the variable _root.ypos to go to 345 but I thought you would need to name the arrow and tell that it needs to move or stay put...
which leads me onto the next Question, how do I make the arrow stick to a button1 once it is clicked? But on rolling over button2 will make it move to that button and then on the roll out move back to button1?
The movieclip arrow is contantly "listening" to what the ypos variable is, if there is any change it goes there. As the code is ON the arrow ne instance names has to be used.
This should work as a simple solution.....
// On arrow
onClipEvent(load){
// Initial position
_root.ypos=440;
}
onClipEvent(enterFrame){
if(_root.button_status != "clicked")(
this._y+=(_root.ypos-this._y)/7;
}
}
Pellepiano your are so kind to help me like on this, I do appreciate it alot.
I have got your code to work and I understand that you are saying - when the button is clicked move ypos to 345.
This seems to stop the arrow near the button but not inline.
What I am trying to make happen is when a button1 is "clicked" the arrow will be attached by an invisible magnet to button1, so when you roll over button2 the arrow will slide towards it but then return to button1 if you have not clicked on it.
Maybe I should get back to my Colin Moock and read some more!?
thank you again
for you to see (MX)
now all u have to do is create the arrow and give an instance name of mcArrow and create the menus and call it mc1, mc2, mc3....
and that's it....
if u have any questions i'm here (lol)
"What I am trying to make happen is when button1 is "clicked" the arrow will be attached by an invisible magnet to button1, so when you roll over button2 the arrow will still slide towards it but when you roll out the button slides back to button1.
no, what i mean is that for exmaple u want to create a menu....
u draw a form and turn it in to a movieclip (not a button)!
and give it an instance name of mc1. if u want to create another menu u do the same thing only now u give an instance name of mc2 etc etc.
if u have any questions don't afraid to ask.... cause i'm really bored....
oh and one other thing.... if the menus are indside a movieclip that let's say has an instance name of mcMain then change the code in the part where the loop is (in the end) to:
lol i didn't post fast enough.... u already got it working.... let me think how i can make the other thing u requested (the magnet)....
i'll get back to u as soon as i will get it to work!
ok i have tried every thing i know (maybe i forgot something) and i can't make to work with the "magnet" affect - i'll keep trying though....
mean while do u allow me to post the question in other forums? (what a stupid question i just asked lol)....