On Wed, May 19, 2010 at 2:41 PM, Angelo Anolin <[email protected]> wrote:
> I actually need the control's signature which to pass to its own event but 
> being called from another control's event.

I'm still not certain what you are attempting to accomplish, but the
dispatchEvent method of the ComboBox will dispatch any event you want.
>From my understanding of your example, the following TextInput change
event handler will dispatch a change event for the ComboBox that is
extended to include the dispatchChangeEvent method defined next. I
seriously do not recommend this this implementation unless it is truly
required for your design.

// The following method handles the change event of the TextInput

private function textInput_changeHandler( event:Event ):void
{
    comboBox.dispatchChangeEvent();
}

// The following would be defined in a class that extends ComboBox

public function dispatchChangeEvent():void
{
    dispatchEvent( new ListEvent( ListEvent.CHANGE ) );
}

Reply via email to