      *  @private
      */    
     private var addedToPopUpManager:Boolean = false;
-    
+
     //--------------------------------------------------------------------------
     //
     //  Properties


        // Change state *after* we pop up, as the skin needs to go be in the initial "closed"
        // state while being created above in order for transitions to detect state change and play. 
        _opened = true;
        invalidateSkinState();
        if (skin)
            skin.addEventListener(FlexEvent.STATE_TRANSITION_COMPLETE, stateTransitionComplete_handler);
        else
            stateTransitionComplete_handler(null); // Call directly
    }
    
    /**
     *  Changes the current state to "closed", waits till any state transitions are finished playing,
     *  dispatches a <code>PopUpClose.CLOSE</code> event and removes the container from the PopUpManager.
     *
     *  <p>The PopUpCloseEvent provides a mechanism to pass commit information from the container to
     *  a listener.  One typical usage scenario is building a multiple-choice dialog with a 
     *  cancel button.  When a valid option is selected, the developer closes the dialog
     *  with a call to the <code>SkinnablePopUpContainer.close()</code> method, passing

[SkinState("closed")]

/**
 *  The SkinnablePopUpContainer class is a SkinnableContainer that also acts as a pop-up.
 *
 *  The SkinnablePopUpContainer is initially in its "closed" state and when it's opened
 *  it will add itself as a pop-up to the PopUpManager and transition to its "normal" state.
 *
 *  <p>When using SkinnablePopUpContainer the pop-up is defined in mxml as
 *  a SkinnablePopUpContainer component.  To show the component create an instance and
 *  call the <code>open()</code> method. The developers are responsible for the sizing and positioning
 *  of the component.  To close the component call the <code>close()</code>
 *  method.  If the pop-up needs to pass data back to a handler, you can add a listener for 
 *  the <code>PopUp.CLOSE</code> event and specify the data in the <code>close()</code> method.</p>
 *
 *  To define open and close animations, use a custom skin with transitions between the "closed"
 *  and "normal" states.
 *
 *  @see spark.skins.spark.SkinnablePopUpContainerSkin
 *
 *  @langversion 3.0
 *  @playerversion Flash 10
 *  @playerversion AIR 2.5
