2 Replies Latest reply on Apr 20, 2009 9:57 AM by Flex harUI

    is this a bug?(1st option of color picker not selectable)

    run,ryan! Level 3

      if default selectedColor is not in dataProvider ....

      try this code

      <?xml version="1.0" encoding="utf-8"?>
      <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
           <mx:ColorPicker selectedColor="0x123456">
                <mx:dataProvider>
                     <mx:Array>
                          <mx:Object color='0xff0000' label='red'/>
                          <mx:Object color='0x00ff00' label='green'/>
                          <mx:Object color='0x0000ff' label='blue'/>
                     </mx:Array>
                </mx:dataProvider>
           </mx:ColorPicker>
      </mx:Application>
      

      notice that you can not select red if u don't select other color first