Hi Kerry,

I actually need the control's signature which to pass to its own event but 
being called from another control's event.

Thanks.

Angelo



________________________________
From: Kerry Jordan <kerry.d.jor...@gmail.com>
To: flexcoders@yahoogroups.com
Sent: Wed, 19 May, 2010 10:37:18
Subject: Re: [flexcoders] Calling a ComboBox Change Event from TextInput  
TextChanged event

  
On Wed, May 19, 2010 at 10:01 AM, Angelo Anolin <angelo_ano...@yahoo.com> wrote:
> What I mean is that the change event would be dispatched (or executed) by the 
> textinput change event.

Instead of attempting to conform to an existing function's signature,
have you considered simply adding another function to process the
event? For example, would the following psuedo-code address your
needs?

private function processChange( /* relevant parameters such as text go
here */ ):void
{
// process change
}

private function comboBoxChangeHandler( event:Event ):void
{
// extract needed data from event

// call processChange to handle the "work"
processChange( /* extracted data */ );
}

private function textInputChangeHandler( event:Event ):void
{
// extract needed data from event

// call processChange to handle the "work"
processChange( /* extracted data */ );
}

 


      

Reply via email to