     //  Overridden Methods
     //
     //--------------------------------------------------------------------------
-    
+
     /**
      *  @private 
      */

 *  This event is dispatched when the container switches from "closed" to "normal"
 *  state and the transition to that state completes.
 *
 *  @eventType mx.events.FlexEvent.OPEN
 * 
 *  @langversion 3.0
 *  @playerversion Flash 10
 *  @playerversion AIR 2.5
 *  @productversion Flex 4.5
 */
[Event(name="open", type="mx.events.FlexEvent")]

/**
 *  Dispatched by the container when it's closed.

     */
    public function close(commit:Boolean = false, data:* = undefined):void
    {
        if (!isOpen)
            return;
        
        // We will dispatch the event later, when the close transition is complete.
        closeEvent = new PopUpEvent(PopUpEvent.CLOSE, false, false, commit, data);

        // Change state
        _isOpen = false;
        invalidateSkinState();

        if (skin)
            skin.addEventListener(FlexEvent.STATE_CHANGE_COMPLETE, stateChangeComplete_handler);
        else
            stateChangeComplete_handler(null); // Call directly
    }
    
    //--------------------------------------------------------------------------
