How about...

public function ValidatedCheckBox()
{
   super();
   this.addEventListener(FlexEvent.CREATION_COMPLETE, handleCreationComplete);
}

public function handleCreationComplete(pEvent :FlexEvent) :void
{
   this.removeEventListener(FlexEvent.CREATION_COMPLETE, 
handleCreationComplete);
   this.setStyle( "disabledColor" , this.getStyle("color") );
}

Panhathai

Reply via email to