That code seems to work for me. Maybe there is something
wrong within your onEnter function? The entire mxml that I ran was
just:
<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml" backgroundColor="white" >
<mx:Script>
function onEnter(event) {
text1.text='triggered enter';
}
</mx:Script>
<mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml" backgroundColor="white" >
<mx:Script>
function onEnter(event) {
text1.text='triggered enter';
}
</mx:Script>
<mx:TextInput id="dbpassword" password="true"
widthFlex="1" enter="onEnter(event)"/>
<mx:Text id="text1" />
<mx:Text id="text1" />
</mx:Application>
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
Sent: Monday, April 25, 2005 9:52 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] enter event for TextInput
My enter event
handler isn't being called for a TextInput tag. The tag looks
like:
<mx:TextInput
id="dbpassword" password="true" widthFlex="1"
enter="onEnter(event)"/>
onEnter is not
invoked when I hit the enter key. There is not to much to these things,
what can be wrong? I'm at a loss!
-S
Yahoo! Groups Links
- To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.