Rotator

Shape
Rotator

Displays a small rotating shape usable as a busy indicator.

Summary
RotatorDisplays a small rotating shape usable as a busy indicator.
Functions
RotatorCreates a round shape that can be animated with start/stop.
disposeRemoves used resources and graphics.
updateRotates the shape to create the illusion of movement.
startStart animating the shape.
stopStop animating the shape.
timerHandlerHandles the timer callback and forces a display update

Functions

Rotator

public function Rotator(extent: uint = DEFAULT_EXTENT)

Creates a round shape that can be animated with start/stop.

Parameters

extentsize of the shape in pixels

dispose

public function dispose():void

Removes used resources and graphics.

update

private function update():void

Rotates the shape to create the illusion of movement.

start

public function start(interval: uint = 20):void

Start animating the shape.

Parameters

intervalmilliseconds between updates (default 20)

stop

public function stop():void

Stop animating the shape.

timerHandler

private function timerHandler(event: TimerEvent):void

Handles the timer callback and forces a display update

Parameters

eventa timer event
public function Rotator(extent: uint = DEFAULT_EXTENT)
Creates a round shape that can be animated with start/stop.
public function dispose():void
Removes used resources and graphics.
private function update():void
Rotates the shape to create the illusion of movement.
public function start(interval: uint = 20):void
Start animating the shape.
public function stop():void
Stop animating the shape.
private function timerHandler(event: TimerEvent):void
Handles the timer callback and forces a display update
Close