1 Reply Latest reply on Mar 13, 2011 9:13 PM by Flex harUI

    detecting clicks outside of a window for a multi-window AIR app in flex

    khalidmbajwa

      Hi Folks,

       

      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.

       

      Thanks.

       

      Khalid