dana
February 18, 2003, 1:27pm
1
I saw a cool menu at www.bukwild.com . I try to make one of my own and have used this script;
onClipEvent (load) {
_x = 0;
speed = 5;
}
onClipEvent (enterFrame) {
endX = _root._xmouse;
_x += (endX-_x)/speed;
}
it work fine but when i put a nother button on the stage whit the same action script, the 2 buttons are on the same place.
I try to set different numbers into the script but the buttons still not go how it suppose.
On the site www.bukwild.com they not on the same place and they not go above each other. How can i fix this?
Please help me,
check this site; www.bukwild.com and tell me how they did it!
system
February 18, 2003, 1:32pm
2
in bukwild the outter buttons use an offset
_xmouse + 50
or
_xmouse - 50
depending on the side.
Also, the ease doesnt occur until the mouse leaves the x bounding area of all the buttons (otherwise you wouldnt be able to click on the outter buttons because theyd keep moving out away from the mouse with the offset)
system
February 18, 2003, 1:45pm
3
thanks!
how can i do that, that they only follow when your not above those buttons?
system
February 18, 2003, 1:51pm
4
and when i used
_xmouse + 50
or
_xmouse - 50
than they move not above each other, but they move next to each other whit the same space all the time.
How can i change this?
system
February 18, 2003, 2:08pm
5
now i have it almost!
i have 3 mc and in each mc a button
actionscrip for MC1=
onClipEvent (load) {
_x = 0;
speed = 5/1;
}
onClipEvent (enterFrame) {
endX = _root._xmouse-25;
_x += (endX-_x)/speed;
}