This may not be what you're looking for, but I did this quick example a while back (view source enabled):
http://share.scalenine.com/source/Colors/Colors.html Also, there's this article: http://blog.flexexamples.com/2007/07/31/using-the-colorpicker-controls-colorfield-and-labelfield-properties/#more-42 Juan scalenine.com degrafa.com --- In [email protected], "gary_mangum" <[EMAIL PROTECTED]> wrote: > > Alex, is there a way to successfully use the colorField right now, or > is this completely broken? > > If it is usable, do you have an example of how to use it? > > Thanks, > Gary > > --- In [email protected], "Alex Harui" <aharui@> wrote: > > > > Unfortunately, the code looks like it doesn't handle xml. Please file a > > bug > > > > > > > > ________________________________ > > > > From: [email protected] [mailto:[EMAIL PROTECTED] On > > Behalf Of Ben Marchbanks > > Sent: Monday, September 24, 2007 7:40 AM > > To: [email protected] > > Subject: [flexcoders] Re: ColorPicker colorField > > > > > > > > I'm not having much luck either. > > > > My colorField is derived from e4x formatted result to query of a > > colorChart table. Here are all the particulars......... > > > > <mx:ColorPicker x="271" y="352" width="47" height="52" > > change="colorize(Number(colorPicker.value))" > > id="colorPicker" dataProvider="{colorsList}" > > colorField="HEX" > > columnCount="6" > > swatchHeight="50" > > swatchWidth="50" > > labelField="RGB"/> > > > > Here is a sample record > > > > <record> > > <recordID>20070923173348</recordID> > > <RGB>13395456</RGB> > > <RGBtext>204,102,0</RGBtext> > > <CMYK/> > > <name/> > > <dateStamp>2007-09-24</dateStamp> > > <R>204</R> > > <G>102</G> > > <B>0</B> > > <HEX>0xCC6600</HEX> > > </record> > > > > defining the dataProvider to the colorPicker does produce the correct > > number of color swatches but does not use the color value from the > > designated colorField. > > > > What am I missing here ? > > > > --- In [email protected] <mailto:flexcoders%40yahoogroups.com> > > , "gary_mangum" <garym@> wrote: > > > > > > Can anyone give me an example of how to use the colorField property of > > > the ColorPicker component? I want to change the palette of available > > > colors that the user can pick from in the dropdown. It looks like you > > > can pass an Array of hexidecimal values or something, but I have been > > > unable to get it working. > > > > > > I did notice that it works in conjunction with the dataProvider and it > > > looks like the colorField property is a string specifying an array > > > inside of the dataProvider. I tried this out as well with no success. > > > > > > Thanks for any help! > > > > > >

