Spark or MX TitleWindow? Does the focusOut handler get called after?
Hello Flex harUI, and thanks for your answer !
It's an MX TitleWindow ...
Both handlers are called, but the focusOut handler is called after the close handler, and it should be before ...
Does the bubbling occurs only for containers/ UIComponent directly under the mouse ?
I mean, maybe the TitleBar of the TitleWindow is not in the bubbling hierarchy (only the client area) ?
I definitively need to process the focusOut handler before the close window handler ...
I don't think this is a bubble issue. FocusOut is called when focus changes
to another focusable component. The Close button is not focusable so
clicking it doesn't cause a focusOut. You probably get a focusOut when the
whole titlewindow goes away.
Whatever code runs in the focusout handler should probably also run in the
close handler and maybe with a flag so the code doesn't run twice.