The following example shows how you can detect when the selected color in a Flash ActionScript 3.0 ColorPicker component by listening for the change event (using the static ColorPickerEvent.CHANGE constant).
Full code after the jump.
The following example shows how you can get the currently selected color as a hexadecimal value on a Flash ActionScript 3.0 ColorPicker component by using the read-only hexValue property.
Full code after the jump.
The following example shows how you can toggle the text field on the Flash ActionScript 3.0 ColorPicker control by setting the Boolean showTextField property.
Full code after the jump.
The following example shows how you can set the number of columns on a Flash ActionScript 3.0 ColorPicker control’s pop up menu by setting the columnCount style.
Full code after the jump.
The following example shows how you can set the data provider for the Flash ActionScript 3.0 ColorPicker component by setting the colors property.
Full code after the jump.
