PDA

View Full Version : Custom cursor



tic
November 25th, 2008, 03:29 PM
Hi, I'm kinda new to flash.

I've made a cursor in a seperate .as file. called "Cursor.as"

Now i want this drawing I made in there to be my current cursor.

But i have no idee what code I need to use..

(i've been searching this forum but everything i found was with movieclips...)

So i'm wondering if you could help me with what code I should put in my Main.as (or Cursor.as) to get it as my current cursor.

tic
November 25th, 2008, 03:44 PM
Nvm, I've got it to work. :)

Now I only need to find the right place to put the Mouse.hide();

Edit: Flash gives the following error when i test it.

1120: Access of undefined property Mouse. Mouse.Hide();

And if i remove that line. it works.. but i see the original mosue OVer my custom mouse...

anyone know how i can fix this?

Edit2: forgot to put import flash.ui.Mouse; xD fixed now.