Packagekm.components
Classpublic class ColorPicker
InheritanceColorPicker Inheritance UIComponent Inheritance flash.display.Sprite

The ColorPicker component class.



Public Properties
 PropertyDefined by
 Inheritedduotone : 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
 Inheritedenabled : 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
 InheritedtoolTip : String
Text to use as toolTip when ToolTip is enabled.
UIComponent
 Inheritedx : Number
UIComponent
 Inheritedy : Number
UIComponent
Public Methods
 MethodDefined by
  
ColorPicker
 Inherited
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
 Inherited
move(x:int, y:int, animationMode:int = 0, animationFrames:int = 12, easeInOut:Boolean = false):void
Moves the component to the specified coordinates.
UIComponent
 Inherited
setProperties(o:Object):void
Sets a number of properties at once.
UIComponent
  
setSkin(assetName:String, usePrefix:Boolean = true):void
ColorPicker
Events
 EventSummaryDefined by
 Inherited 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
Property detail
effectSpeedproperty
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
hexToolTipproperty 
public var hexToolTip:Boolean = true

Use hex color value as toolTip when ToolTip is enabled.

onChangeproperty 
public var onChange:Function

onChange handler.

selectedColorproperty 
selectedColor:uint  [read-write]

Gets or sets the selected color.

Implementation
    public function get selectedColor():uint
    public function set selectedColor(value:uint):void
Constructor detail
ColorPicker()constructor
public function ColorPicker()
Method detail
setSkin()method
public function setSkin(assetName:String, usePrefix:Boolean = true):void

Parameters
assetName:String
 
usePrefix:Boolean (default = true)

See also

km.core.Image.setSkin()
Event detail
changeevent 
Event object type: flash.events.Event

The change event is broadcasted when a new color is selected.
It's also possible to use the onChange handler.