Ah, ok, than have the click handlers in your components first stopPropagation, then dispatch a special event, say "doRun". Then listen for tat event.
Tracy ________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of markgoldin_2000 Sent: Tuesday, October 14, 2008 2:45 PM To: [email protected] Subject: [flexcoders] Re: Even driven form Yeah, but a button and a InputText are in two different forms. I am assembling my forms using "building blocks". --- In [email protected] <mailto:flexcoders%40yahoogroups.com> , "Tracy Spratt" <[EMAIL PROTECTED]> wrote: > > Have the button.click handler and the keyboard event handler both call > the same function. > > Tracy > > > > ________________________________ > > From: [email protected] <mailto:flexcoders%40yahoogroups.com> [mailto:[email protected] <mailto:flexcoders%40yahoogroups.com> ] On > Behalf Of markgoldin_2000 > Sent: Tuesday, October 14, 2008 11:56 AM > To: [email protected] <mailto:flexcoders%40yahoogroups.com> > Subject: [flexcoders] Even driven form > > > > 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 >

