Hi,
I have a Movieclip on scene 1 named testMC.
I have a button on scene 1 named myButton.
Actionscript in myButton:
on (rollOver) {
tellTarget ("/rollover") {
gotoAndPlay("namn1start");
}
}
Actionscript in **testMC **symbol:
onClipEvent (enterFrame) {
//generating movement
location = this._x;
var i;
//speed
i=40;
//i = 1+_root._xmouse/5;
if (this, hitTest(_root.block)) {
this._x = -1000;
} else {
this._x = location+i++;
}
}
This create a movement to the test MC symbol.
But how do I slow down the movement in testMC when I roll over with the mouse on the button? I don’t want the movement to be depending on x and y of the mouse, so that it speed up when dragging mouse right and slowing down when dragging mouse to the left.
I want a nice equal speed (slower than it’s original speed) of the testMC when I mouse over the button.