# FOCUS\_OUT and Components toguether, bug?

**URL:** <https://forum.kirupa.com/t/focus-out-and-components-toguether-bug/292361>\
**Category:** flash\
**Created:** [July 13, 2009, 2:27pm UTC](https://forum.kirupa.com/t/focus-out-and-components-toguether-bug/292361 "2009-07-13T14:27:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kwh](https://avatars.discourse-cdn.com/v4/letter/k/7993a0/32.png) [@kwh](https://forum.kirupa.com/u/kwh)\
**Post date:** [July 13, 2009, 2:27pm UTC](https://forum.kirupa.com/t/focus-out-and-components-toguether-bug/292361/1 "2009-07-13T14:27:59Z")

</div>

Hi,

I’m using Flash CS3 and I have this weird problem…

I just put a input text box (with borders so I can see it) and called “[COLOR=RoyalBlue]txtTest[/COLOR]” and added this script:

[COLOR=RoyalBlue]txtTest.addEventListener(FocusEvent.FOCUS\_OUT, function(event:FocusEvent):void {  
trace(“FOCUS\_OUT”);  
});[/COLOR]

Test the movie and you will see that when you click in the box and click out side it will trace “FOCUS\_OUT”.

Now add any User Interface Component to the Scene.

Test the movie, you can’t make it trace “FOCUS\_OUT” anymore…

Why?  
How can I fix this?  
Any idea?

Thank you.
