Class fvaswing.components.cursors.FvBusyCursor

Description

A 'busy' cursor.

There are 2 ways to use cursor.
First, classic instantiation and AsWing CursorManager use.

   var cursor : FvBusyCursor = new FvBusyCursor();
   CursorManager.showCustomCursor( cursor );
 
Second, use direct show method.
    FvBusyCursor.show();
 

Field Index

backgroundColor, borderColor, CURSOR_BACKGROUND_COLOR, CURSOR_BORDER_COLOR, CURSOR_SIZE, size

Method Index

new FvBusyCursor()
getInstance(), hide(), paintImage(), release(), repaint(), show()

Inherited from FvAbstractCursor

Constructor Detail

FvBusyCursor

public function FvBusyCursor()

Constructor.

Cursor properties are initialized with constants values.

Field Detail

CURSOR_BACKGROUND_COLOR

static public CURSOR_BACKGROUND_COLOR:Number
Background color used if backgroundColor is not defined.

CURSOR_BORDER_COLOR

static public CURSOR_BORDER_COLOR:Number
Border color used if borderColor is not defined.

CURSOR_SIZE

static public CURSOR_SIZE:Number
Cursor size ( circle diameter ) used if size is not defined.

backgroundColor

public backgroundColor:Number
Cursor background color.

borderColor

public borderColor:Number
Cursor border color.

size

public size:Number
Cursor size ( diameter in pixel ).

Method Detail

getInstance

static public function getInstance():FvBusyCursor

Returns a unique FvBusyCursor instance.

show

static public function show():Void

Shows cursor and hides the system cursor.

hide

static public function hide():Void

Hides busy cursor, pause 'busy' animation and shows the default system cursor.

paintImage

public function paintImage(target:MovieClip, x:Number, y:Number):Void

Paints the image to a specified movieclip at point(x, y)

release

public function release():Void

Stops the impulser ( rotation manager ).
For example, in critical graphic case, we can hide the busy cursor and pause the impulser ( onEnterFrame call ) with release() method.

Impulser will be automatically restart when next paintImage will be called.

See Also

repaint

public function repaint():Void

Concrete drawing implementation.