In Flash, can you move the cursor/mouse with the keyboard?

Snicjelmo3

New member
I need this because I am making a Flash MX (6) application for my PSP, just a fun project and I run the flash file in the PSPs browser and it has a cursor which is controlled by joystick

The arrow buttons on the PSP register the same as the arrow keys on a keyboard and I want the cursor to jump from button to button in my flash app by pressing the arrow buttons rather than just slowly moving freely with the joystick however leaving this function as an option.

Think about when playing games that the menus use cursors to navigate and they move through menu items by simply jumping to and froe, rather than free movement. I want to acomplish this effect.

So im thinking a simple onKeyPress event for like the rightkey, upkey, leftkey and downkey and the event is _xmouse += 10 or _ymouse += 10 etc for the relevant event.

I think _xmouse and _ymouse only reads the cursors position and not sets it, I think thats why my example above does not work.

Is there a method that will? Thanks
 
Back
Top