You could do the following (as Tracy has stated - just written out):

<mx:TextInput text="" enter="onButtonClick()" />
<mx:Button label="Submit" click="onButtonClick()" />

--- In flexcoders@yahoogroups.com, "markgoldin_2000" 
<[EMAIL PROTECTED]> wrote:
>
> I am designing different data entry forms. They all have same 
> pushbutton Run. In a very simple scenario I would have a text field 
and 
> a button.I want to have same result whether the user clicks on a 
> button, or hits enter when he is done entering data into a text box. 
I 
> could probably simply execute button's click handler from a text. But 
> can I also do something like this?  The button listens to some event 
> raised by diffrent forms and when a form raises a flag to run the 
> button executes its own click?
> Any idea of how to do that?
> 
> Thanks
>


Reply via email to