Try this... <mx:TextArea id="ta" width="150" text="0x{cp.selectedColor.toString(16)}"/> <mx:ColorPicker id="cp" />
Darren >From: "Sonja Duijvesteijn" <[EMAIL PROTECTED]> >Reply-To: flexcoders@yahoogroups.com >To: flexcoders@yahoogroups.com >Subject: [flexcoders] colorPicker, getting the colour out >Date: Tue, 13 Jun 2006 12:39:45 +0200 > >When I use custom objects or an array to fill the colorpicker everything >works like a charm. But when I try to use the colorpicker as it is I can't >seem to get the selected color out as an hexidecimal value. I've tried >'selectedColor', 'selectedItem', and have trying to get 'selectedIndex' to >admit colour, but no luck there either. > > >The documentation gives enough help for the advanced topics (putting in >your >own colours) but forgets the basics. How can I find out which colour is >selected? (in hexidecimals) > >Thanks in advance, >Sonja ------------------------ Yahoo! Groups Sponsor --------------------~--> Great things are happening at Yahoo! Groups. See the new email design. http://us.click.yahoo.com/TISQkA/hOaOAA/yQLSAA/nhFolB/TM --------------------------------------------------------------------~-> -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/