1 Reply Latest reply on Dec 18, 2006 11:02 AM by FlightGuy

    color picker help!

    upshotvideo Level 1
      Hi,
      I need a text input to update on the change of a color picker. I need the text input to display the hexidecimal of the selected color of the color picker. Ive tried many things, but i cant get it to display anything but decimal format. The color picker's text field shows the hex value, but i cant move that value anywhere else.
      Thanks for any help.
        • 1. Re: color picker help!
          FlightGuy Level 1
          try something like this:
          <mx:ColorPicker id="myColorPicker".../>
          <mx:TextInput text="{myColorPicker.selectedColor.toString(16)}"/>

          That should do the trick. it won't zero-pad to the left, I'm sure there's some easy way to do that, but it will give you the hex representation.