what key are you wanting to bind to?  If Return, its all built in already.
Anything descending from Container has a defaultButton property that you can
assign to a Button instance

http://livedocs.adobe.com/flex/3/langref/mx/core/Container.html

Form and FormItem descend from Container, so you can use that in your Form.

Douglas Knudsen
http://www.cubicleman.com
this is my signature, like it?


On Sun, Apr 19, 2009 at 1:40 AM, Laurence MacNeill <[email protected]>wrote:

> At 11:19 PM 4/18/2009, you wrote:
>
>> The example in the documentation at <
>> http://livedocs.adobe.com/flex/3/html/help.html?content=events_11.html>
>> http://livedocs.adobe.com/flex/3/html/help.html?content=events_11.htmlhas 
>> the event listener for the keyDown event being attached to the
>> application to achieve the behavior you're looking for. I'd guess that the
>> reason the code you sent doesn't work is because the event listener is
>> attached to an empty form, there's nothing there for the user to send a
>> keypress to. Maybe adding a text input in the form would work, you may still
>> have to attach the listener to the actual element (the text field).
>>
>
>
> Ok, I think I see what they're doing there...  Basically they're attaching
> the listener to the Application, not to a Form or anything inside the app...
>  I think I can make that work.  Thanks.
>
>
> Laurence MacNeill
> Mableton, Georgia, USA
>
>
>
> -------------------------------------------------------------
> To unsubscribe from this list, simply email the list with unsubscribe in
> the subject line
>
> For more info, see http://www.affug.com
> Archive @ http://www.mail-archive.com/discussion%40affug.com/
> List hosted by http://www.fusionlink.com
> -------------------------------------------------------------
>
>
>

Reply via email to