| Package | com.bit101.components |
| Class | public class IndicatorLight |
| Inheritance | IndicatorLight Component flash.display.Sprite |
| Property | Defined by | ||
|---|---|---|---|
| color : uint | IndicatorLight | ||
![]() | height : Number | Component | |
| isFlashing : Boolean [read-only]
Returns whether or not the light is currently flashing.
| IndicatorLight | ||
| isLit : Boolean | IndicatorLight | ||
![]() | width : Number | Component | |
![]() | x : Number
Overrides the setter for x to always place the component on a whole pixel.
| Component | |
![]() | y : Number
Overrides the setter for y to always place the component on a whole pixel.
| Component | |
| Method | Defined by | ||
|---|---|---|---|
|
IndicatorLight(parent:DisplayObjectContainer = null, xpos:Number = 0, ypos:Number = 0, color:uint = 0xff0000, label:String = "")
Constructor
| IndicatorLight | ||
|
draw():void
Draws the visual ui of the component.
| IndicatorLight | ||
|
flash(interval:int = 500):void
Causes the light to flash on and off at the specified interval (milliseconds).
| IndicatorLight | ||
![]() |
initStage(stage:Stage):void
[static]
Utility method to set up usual stage align and scaling.
| Component | |
![]() |
move(xpos:Number, ypos:Number):void
Moves the component to the specified position.
| Component | |
![]() |
setSize(w:Number, h:Number):void
Sets the size of the component.
| Component | |
| Method | Defined by | ||
|---|---|---|---|
|
addChildren():void
Creates the children for this component
| IndicatorLight | ||
![]() |
getShadow(dist:Number, knockout:Boolean = false):DropShadowFilter
DropShadowFilter factory method, used in many of the components.
| Component | |
|
init():void
Initializes the component.
| IndicatorLight | ||
![]() |
invalidate():void
Marks the component to be redrawn on the next frame.
| Component | |
| color | property |
color:uint [read-write]Implementation
public function get color():uint
public function set color(value:uint):void
| isFlashing | property |
isFlashing:Boolean [read-only]Returns whether or not the light is currently flashing.
Implementation public function get isFlashing():Boolean
| isLit | property |
isLit:Boolean [read-write]Implementation
public function get isLit():Boolean
public function set isLit(value:Boolean):void
| IndicatorLight | () | constructor |
public function IndicatorLight(parent:DisplayObjectContainer = null, xpos:Number = 0, ypos:Number = 0, color:uint = 0xff0000, label:String = "")Constructor
Parametersparent:DisplayObjectContainer (default = null) — The parent DisplayObjectContainer on which to add this CheckBox.
|
|
xpos:Number (default = 0) — The x position to place this component.
|
|
ypos:Number (default = 0) — The y position to place this component.
|
|
color:uint (default = 0xff0000) — The color of this light.
|
|
label:String (default = "") — String containing the label for this component.
|
| addChildren | () | method |
protected override function addChildren():voidCreates the children for this component
| draw | () | method |
public override function draw():voidDraws the visual ui of the component.
| flash | () | method |
public function flash(interval:int = 500):voidCauses the light to flash on and off at the specified interval (milliseconds). A value less than 1 stops the flashing.
Parametersinterval:int (default = 500) |
| init | () | method |
protected override function init():voidInitializes the component.