Developer Network Home  Help 

YDN Flash Developer Center Astra Flex Components Using ColorSliderPicker
Flash Developer Center

ASTRA ColorSliderPicker

ColorSliderPicker is a user interface component for Flex that allows the user to pick a color value. It combines a set of sliders where each slider represents a component of a colorspace. For example, a ColorSliderPicker displaying an RGB color includes a red slider, a green slider, and a blue slider.

Using ColorSliderPicker in Flex 3

In Getting Started, the ColorSlider picker uses the default RGB color space. A color space is a way to represent a color value using multiple subvalues. An RGB color has a red value, a green value, and a blue value. A few more color space options are available, including HSB, CMY, and CMYK.

The following simple application demonstrates each of the availble colorSpace values. A RadioButton exists for each, and selecting a new value will automatically update the ColorSliderPicker.

As you can see, a slider appears for each subvalue of the selected color space. RGB, HSB, and CMY each have three subvalues, and CMYK has four.

Screen capture of ColorSliderPicker Color Space Example

To see a live example, please install Adobe Flash Player version 9 or higher.

Download the MXML example file.

For additional information, please take a look at the Examples section for functional demonstrations and the ActionScript 3.0 Class Reference for full details on every property, method, and style available to the ColorSliderPicker component.