[flexcoders] FocusOut event fires over and over...

2010-03-24 Thread Laurence
I want a pop-up window to appear when someone tabs out of a particular 
TextInput in my app.  So I simply set its FocusOut event equal to the function 
that makes the pop-up window appear...  Sounds simple enough, right?

But the FocusOut event keeps occurring over and over...  I type something into 
the TextInput then hit Tab.  The pop-up window pops up the way it's supposed 
to.  I select something in the pop-up window (or close it without selecting 
anything) and it pops right back up.  It's like my TextInput is re-gaining 
focus and then losing it again (which makes the window pop-up, again, forcing 
me to select something or close the window, which makes it happen again, etc., 
etc)

So how do I prevent this from happening?  Why is FocusOut occurring over and 
over and over like that?  I've tried, in my FocusOut handler, setting the focus 
onto another TextInput before calling the pop-up window, but that does no good 
-- same exact results.

This is incredibly frustrating!  Anyone have any ideas?

Thanks,
Laurence MacNeill
Mableton, Georgia, USA





[flexcoders] FocusOut Issue in AdvancedDataGrid with ItemRenderers

2009-08-06 Thread mfsiddiq
Hi



   I am having issue with FocusOut Event.I have an ADG with TextInput as my
renderer in most of the columns.I have added a FocusOut Event as listener on
my textInput Renderer component.FocusOut Event gets triggered whenever my
focus moves away from the TextInput to any blank areas on the ADG and my
listener function gets called perfectly,But whenever i move my focus from
one textInput Renderer component to another TextInput Renderer
component(either in the same column or a different column),FocusOut Event
Listener function is called twice as a result i am getting wrong results.It
is called once for the previous Focused Out textInput and once for the new
Focused In Textinput.How do i resolve this issue.



Regards

Sidd




[flexcoders] FocusOut ??

2006-08-31 Thread Rich Tretola
I am having an issue where the focusOut on a text input will run the
function that I have assigned but will then return focus to the
calling text input.  The following code shows this occuring in a
simple example.  Just put your focus on the top text input and then
tab out.  You will see the alert and you can see the cursor in the 2nd
text input underneath the alert but, closing the alert then returns
the focus back to the top text input.

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
mx:Script
![CDATA[
private function doSomething():void{
mx.controls.Alert.show('t1 = ' + t1.text);
}
]]
/mx:Script


mx:TextInput id=t1 text=Hello focusOut=doSomething() /  
mx:TextInput id=t2 /
/mx:Application


Rich


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
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:
http://docs.yahoo.com/info/terms/