gencogluMX
02-03-2009, 06:24 PM
hi,
The following code works fine when mouse is pressed at any position on the screen ,object moves that position...but what if I want the object move that position at a certain speed..say+10 using setInterval...I mean I want my object move slowly to any position I click on the screen..
How do you modify the code ?
thanks
onClipEvent (mouseDown) {
this._x = _root._xmouse;
this._y = _root._ymouse;
}
The following code works fine when mouse is pressed at any position on the screen ,object moves that position...but what if I want the object move that position at a certain speed..say+10 using setInterval...I mean I want my object move slowly to any position I click on the screen..
How do you modify the code ?
thanks
onClipEvent (mouseDown) {
this._x = _root._xmouse;
this._y = _root._ymouse;
}