Package | km.components |
Class | public class ColorPicker |
Inheritance | ColorPicker ![]() ![]() |
Property | Defined by | ||
---|---|---|---|
![]() | duotone : Array The duotone property can be used to convert the colors of the component into duotone.
| UIComponent | |
effectSpeed : int Gets or sets the speed in msec of the mouse over fade effect.
| ColorPicker | ||
![]() | enabled : Boolean Specifies if the component is enabled.
If a component is disabled, it will be turned into grayscale and become partly transparent. | UIComponent | |
hexToolTip : Boolean = true Use hex color value as toolTip when ToolTip is enabled.
| ColorPicker | ||
onChange : Function onChange handler.
| ColorPicker | ||
selectedColor : uint Gets or sets the selected color.
| ColorPicker | ||
![]() | toolTip : String Text to use as toolTip when ToolTip is enabled.
| UIComponent | |
![]() | x : Number | UIComponent | |
![]() | y : Number | UIComponent |
Method | Defined by | ||
---|---|---|---|
ColorPicker | |||
![]() |
clone():*
Returns a clone of the component.
The skin of the component is cloned but other things like the text of a label or the items of a list aren't. | UIComponent | |
![]() |
move(x:int, y:int, animationMode:int = 0, animationFrames:int = 12, easeInOut:Boolean = false):void
Moves the component to the specified coordinates.
| UIComponent | |
![]() |
setProperties(o:Object):void
Sets a number of properties at once.
| UIComponent | |
setSkin(assetName:String, usePrefix:Boolean = true):void
| ColorPicker |
Event | Summary | Defined by | ||
---|---|---|---|---|
![]() | The animationComplete event is broadcasted when an animated move is completed. | UIComponent | ||
The change event is broadcasted when a new color is selected. It's also possible to use the onChange handler. | ColorPicker |
effectSpeed | property |
effectSpeed:int
[read-write]Gets or sets the speed in msec of the mouse over fade effect.
Implementation public function get effectSpeed():int
public function set effectSpeed(value:int):void
hexToolTip | property |
public var hexToolTip:Boolean = true
Use hex color value as toolTip when ToolTip is enabled.
onChange | property |
public var onChange:Function
onChange handler.
selectedColor | property |
selectedColor:uint
[read-write]Gets or sets the selected color.
Implementation public function get selectedColor():uint
public function set selectedColor(value:uint):void
ColorPicker | () | constructor |
public function ColorPicker()
setSkin | () | method |
public function setSkin(assetName:String, usePrefix:Boolean = true):void
Parameters
assetName:String |
|
usePrefix:Boolean (default = true )
|
See also
change | event |
flash.events.Event
The change event is broadcasted when a new color is selected.
It's also possible to use the onChange handler.