2006/7/5, Shannon Hicks <[EMAIL PROTECTED]>:
I've added a defaultButton property to my form, yet the enter key does nothing. If I click the button, it behaves as expected.Here's my code:<mx:Form id="loginForm" width="100%" defaultButton="{loginButton}" >
<mx:FormItem label="Username" required="true">
<mx:TextInput id="loginUsername" text="" />
</mx:FormItem>
<mx:FormItem label="Password" required="true">
<mx:TextInput id="loginPassword" text="" displayAsPassword="true" />
</mx:FormItem>
<mx:Spacer height="20"/>
<mx:FormItem horizontalAlign="right" width="100%">
<mx:Button id="loginButton" label="Log In" click="doLoginSubmit()" />
</mx:FormItem>
</mx:Form>Pretty simple, not sure what I'm doing wrong.Shan
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.9.9/382 - Release Date: 7/4/2006
__._,_.___
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
| Web site design development | Computer software development | Software design and development |
| Macromedia flex | Software development best practice |
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

