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