From the category archives:

ColorPicker

The following example shows how you can use an embedded font with the Flex ColorPicker control by setting the fontFamily style.

Full code after the jump.

[click to continue…]

{ 0 comments }

In a previous example, “Changing the preview color width for the ColorPicker control in Flex 3″, we saw how you can change the preview color width for a ColorPicker control.

The following example shows how you can change the text field width in the ColorPicker control’s drop down swatch panel by setting the swatchPanelStyleName and textFieldWidth styles in Flex 3.

Full code after the jump.

[click to continue…]

{ 0 comments }

The following example shows how you can change the preview color width in the ColorPicker control’s drop down swatch panel by setting the swatchPanelStyleName and previewWidth styles in Flex 3.

Full code after the jump.

[click to continue…]

{ 0 comments }

The following example shows how you can toggle the nested text field in a ColorPicker control’s swatch panel in Flex by setting the showTextField property.

Full code after the jump.

[click to continue…]

{ 0 comments }

The following example shows how you can customize the appearance of the ColorPicker control’s nested text field in Flex 3 by setting the textFieldStyleName style.

Full code after the jump.

[click to continue…]

{ 0 comments }

The following example shows how you can set the swatch grid background color on a Flex 3 ColorPicker control by setting the swatchGridBackgroundColor style. You can also see how you can set the horizontalGap, and verticalGap styles using CSS.

Full code after the jump.

[click to continue…]

{ 0 comments }

The following example shows how you can set the swatch highlight size on a Flex 3 ColorPicker control by setting the swatchHighlightSize style. You can also see how you can set the swatchBorderColor, swatchBorderSize, and swatchHighlightColor styles using CSS.

Full code after the jump.

[click to continue…]

{ 0 comments }

The following example shows how you can set the swatch border size on a Flex 3 ColorPicker control by setting the swatchBorderSize style.

Full code after the jump.

[click to continue…]

{ 0 comments }

Changing the Flex ColorPicker control’s swatch panel background color

by Peter deHaan December 27, 2007

The following example shows you how you can change the ColorPicker control’s background color in Flex 3 by setting the backgroundColor style using CSS and ActionScript.
Full code after the jump.

Read the full article →

Styling the ColorPicker control in Flex 3

by Peter deHaan October 12, 2007

I saw this come up on a list recently, so thought I’d share the answer with my loyal readership. Styling the ColorPicker control changed somewhat between Flex 2.0.1 and Flex 3. Now, instead of applying certain styles directly to the ColorPicker itself, you create a new custom style and assign the swatchPanelStyleName style on the [...]

Read the full article →

Changing the ColorPicker control’s easing duration and easing functions

by Peter deHaan August 24, 2007

The following example shows how you can control the easing duration and easing functions that the ColorPicker control uses to display its drop-down swatch palette. Of course, this probably isn’t the best example of “useful animation” and will probably just annoy users (the long 2 second easing animation), but it is nice to know that [...]

Read the full article →

Converting and formatting colors

by Peter deHaan August 13, 2007

Here’s a quick post on converting some colors from strings to integers, and splitting colors into separate red/green/blue values, and formatting colors using Flex.
Full code after the jump.

Read the full article →