Hi all,

  I am using a ColorPicker in a dialog box that works fine except I can't 
get it to close without clicking off the stepper (focussing elsewhere).   It 
starts out as the little chip but once clicked on, I can't get it to close 
back to the small chip unless I click off of it.  I would much prefer to 
simply close it once it has been clicked on once but the following code 
won't do that.  Any ideas?  Thanks.


objColorPicker.addEventListener(ColorPickerEvent.CHANGE, changeLinkColor);


private function changeLinkColor(event:ColorPickerEvent):void {

    var cp:ColorPicker = event.target as ColorPicker;

        // do stuff - this works with the hexValue

  //  neither of the following do anything

  cp.close();
  okayButton.setFocus();
}



Mark 

_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to