KoolMoves AS3 API Documentation | All Packages | All Classes | Index | Frames No Frames |
Class ColorPicker

Package | km.components
Class | public class ColorPicker
Inheritance | ColorPicker UIComponent flash.display.Sprite

The ColorPicker component class.

Public Properties
Hide Inherited Public Properties
Show Inherited Public Properties

| 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

Public Methods
Hide Inherited Public Methods
Show Inherited Public Methods

| Method | Defined by
--- | --- | ---
|  | ColorPicker() | 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

Events
Hide Inherited Events
Show Inherited Events

| Event | Summary | Defined by
--- | --- | --- | ---
|  | animationComplete | The animationComplete event is broadcasted when an animated move is completed. | UIComponent
|  | change | The change event is broadcasted when a new color is selected. It's also possible to use the onChange handler. | ColorPicker

Property detail

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`
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

change | event

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.

Last update : 04/05/2008