So i have this AIR app coded in flex where i have several floating native windows and what i want is to detect when a user clicks outside of a window so that i can close it. (I don't want to use the PopupManager Class and would want to use the native windows). My question is, is there a way to detect a click outside of a spark window , or alternativley is there some root container/object which is a parent to all the native windows so that a click inside any native window would bubble up to it ? (Apparently the stage object of the root windowed application is not that object since each window is not a child of the stage for the root application).
Any help would be very very deeply appreciated.
I believe the window should get a WINDOW_DEACTIVATE event