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
[COLOR=#000000][FONT=Courier New][COLOR=#0000bb]onClipEvent [/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000bb]mouseDown[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]) {
[/COLOR][COLOR=#0000bb]this[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000bb]_x [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000bb]_root[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000bb]_xmouse[/COLOR][/FONT][FONT=Courier New][COLOR=#007700];
[/COLOR][COLOR=#0000bb]this[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000bb]_y [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000bb]_root[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000bb]_ymouse[/COLOR][/FONT][COLOR=#007700][FONT=Courier New];
} [/FONT]
[/COLOR][COLOR=#0000bb][/COLOR][/COLOR]