hi got this off a tutorial, and modified it. if you check the file the round button moves on click! it tracks _xmouse position
im trying to get it to track the mouse but only if one of the three buttons are pressed?
hi got this off a tutorial, and modified it. if you check the file the round button moves on click! it tracks _xmouse position
im trying to get it to track the mouse but only if one of the three buttons are pressed?
Put this on the MC that moves.
[AS]
onClipEvent (load) {
_x = -51;
speed = 8;
}
onClipEvent (enterFrame) {
_x += (endX-_x)/speed;
_root.button1.onPress = function() {
endx = 58;
};
}
[/AS]
Then change the instance name of your button that makes the MC move, to button1.
cheers my friend.!!!
:: Copyright KIRUPA 2024 //--