My account
Shopping cart
Knowledge base
Support


Color Picker Pro V3 Properties



Overview | Properties | Methods | Events | Styles | XML

Most these properties can be set in the Component Inspector (Alt + F7), also be set from XML, using the xmlPath optional parameter.

Property Type
Component Inspector
Description
autoMode Boolean
No
If set to true, the component will function automatically, it will open, switch and close on user clicks, else the component will only dispatch events but will not execute the corresponding action

Default: true

Usage:
componentInstance.autoMode = false
color Number
Yes
The initial color of the component

Usage:
componentInstance.color = 0xFF0000
colorSource String
Yes
The source of color picking: the entire Stage, including the component's color palette; another movie clip, stated in the targetSourceClip parameter, including the component's color palette; only the component's color palette. Values:[self,stage,other]

Default: self

Usage:
componentInstance.colorSource = "other"
enabled Boolean
No
Specifies if the component is enabled or not.

Default: true

Usage:
componentInstance.enabled = false
initialState String
Yes
Sets the initial state/mode, how the component will be opened by default. Values: [button, fixedEasy, fixedPro, floatingEasy, floatingPro]

Default: button

Usage:
componentInstance.initialState = "floatingEasy"
switchModeButton Boolean
Yes
If true, the switch button will be used, else, the switch button will be invisible.

Default: true

Usage:
componentInstance.switchModeButton = "floatingEasy"
targetSourceClip String
Yes
The name and path of a movie clip to be used as a new color source for the color picking, besides the component's color palette, if colorSource == "other"

Usage:
componentInstance.targetSourceClip = "my_mc"
theme String
Yes
Specifies the theme to be used other than the default theme. Themes are reserved for Jumpeye themes.
[optional]

Usage:
componentInstance.theme = "ColorPickerThemeOffice"
xmlPath String
Yes
Optional parameter. Sets the path to a XML file that can configure the Color Picker Pro V3.

Parameters that are set from the <properties> node of the XML (xmlPath) will override parameters set from script or Component Inspector.
You dont need to use xmlPath param, you can set the XML using the setXML method.
The <styles> node will contain the styles for panel items, their content sizing, movieclip states and how their text is rendered.

Usage:
componentInstance.xmlPath = "XMLPanelConfig.xml"

Overview | Properties | Methods | Events | Styles | XML