Required: Aspire UI Components Standard Edition
The uiColorPicker control creates a single rectangular button that brings up a palette when it is clicked. This allows users to pick a color from a pre-defined set of colors.
import com.ghostwire.ui.controls.uiColorPicker; // create colorpicker instance var myColorPicker:uiColorPicker = new uiColorPicker(); myColorPicker.x = 10; myColorPicker.y = 10; // set up listener myColorPicker.addEventListener(Event.CHANGE, onColorPickerChange, false, 0, true); // add to display list addChild(myColorPicker);
For more information on the members of the com.ghostwire.ui.controls.uiColorPicker class, please refer to the API Reference.