PDA

View Full Version : controlling cursor movement



copywriter27
May 8th, 2004, 03:20 AM
my friend and i have been working on some banners with Flash 4. is there any actionscript that can achieve the following result?

if i move the cursor to a point A, it automatically moves by itself to a point B. then if i move the cursor from B to a point C, it bounces away to a point D.

i stumbled upon this site while googling around. i'm not a techie, but yeah, i can handle word processors :}. thought you guys might be able to help me out.

thanks,

copywriter27

valpez1
May 8th, 2004, 03:59 AM
Hi, welcome to the forums. :)

Sadly, you can't control the user's default mouse...however, you CAN create a mouse in flash that looks exactly the same, then just hide the default cursor, and have the newly created mouse take it's place; that way you can control wherever and whenever the mouse moves.

Hope that helps. Goodluck.

copywriter27
May 8th, 2004, 04:56 AM
hey valpez,

thanks a ton for the info. and for replying :)

ok, so is there any place i can find the script for what you just described? i.e. hiding the cursor and then taking over with another cursor.

thanks,

copywriter

andr.in
May 8th, 2004, 07:09 AM
here's a really old tute: http://www.kirupa.com/developer/flash5/globalmousecursor.htm

but you can't create a cursor that looks exactly the same as the user's cursor... ppl have different cursors :to:

valpez1
May 8th, 2004, 02:15 PM
touche ;)