| Package | com.bit101.components |
| Class | public class CheckBox |
| Inheritance | CheckBox Component flash.display.Sprite |
| Property | Defined by | ||
|---|---|---|---|
![]() | height : Number | Component | |
| label : String | CheckBox | ||
| selected : Boolean | CheckBox | ||
![]() | 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 | ||
|---|---|---|---|
|
CheckBox(parent:DisplayObjectContainer = null, xpos:Number = 0, ypos:Number = 0, label:String = "", defaultHandler:Function = null)
Constructor
| CheckBox | ||
|
draw():void
Draws the visual ui of the component.
| CheckBox | ||
![]() |
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
| CheckBox | ||
![]() |
getShadow(dist:Number, knockout:Boolean = false):DropShadowFilter
DropShadowFilter factory method, used in many of the components.
| Component | |
|
init():void
Initializes the component.
| CheckBox | ||
![]() |
invalidate():void
Marks the component to be redrawn on the next frame.
| Component | |
| label | property |
label:String [read-write]Implementation
public function get label():String
public function set label(value:String):void
| selected | property |
selected:Boolean [read-write]Implementation
public function get selected():Boolean
public function set selected(value:Boolean):void
| CheckBox | () | constructor |
public function CheckBox(parent:DisplayObjectContainer = null, xpos:Number = 0, ypos:Number = 0, label:String = "", defaultHandler:Function = null)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.
|
|
label:String (default = "") — String containing the label for this component.
|
|
defaultHandler:Function (default = null) — The event handling function to handle the default event for this component (click in this case).
|
| 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.
| init | () | method |
protected override function init():voidInitializes the component.