4 Replies Latest reply on Sep 18, 2011 5:14 AM by Francisc

    SkinnablePopUpContainer: What happens when close() is called

    Francisc Level 3

      Hello,

       

      When I call close on a SkinnablePopUpContainer, what happens to event listeners registered to it, the variable that holds reference to it, properties defined in it and so on?

       

      For example, in my application in order to check if there is one on screen I do this:

       

      //Instantiate

      popup=new mySkinnablePopUpContainer();

      popup.addEventListener(PopUpEvent.CLOSE,popupClsoe);

      ...

       

      private function popupClose(event:PopUpEvent):void

      {

           popup=null;

      }

       

       

      And basically I check to see if popup is null. Is there another way of doing this?

       

      Thank you.