Hi, I want a custom cursor I can edit in the .mxml file. For the moment I got a static one with a class extends Sprite. Is for a SketchPad application, the cursor will be the color and the size of the user choice. Let me know if it possible and how.
Here the class in a .as file :
package project
{
import flash.display.Sprite;
public class cursors extends Sprite
{
public function cursors()
{
this.graphics.lineStyle( 1 , 0x666666 , 1 );
this.graphics.drawCircle( 0 , 0 , 5/2 );
super();
}
}
}
Here the .mxml file code :
import project.cursors;
private var cursorID:Number = 0;
cursorID = CursorManager.setCursor(cursors);