 {
     
 import flash.display.DisplayObject;
-import flash.display.Stage;
-import flash.display.StageDisplayState;
 import flash.events.Event;
-import flash.geom.ColorTransform;
 import flash.geom.Matrix;
 import flash.geom.Point;
 import flash.geom.Rectangle;

import mx.managers.PopUpManager;
import mx.styles.ISimpleStyleClient;
import mx.utils.MatrixUtil;

use namespace mx_internal;


    {
        if (!popUpIsDisplayed)
            return;
        
        // Set the dimensions explicitly because UIComponents always set themselves to their
        // measured / explicit dimensions if they are parented by the SystemManager. 
        if (popUp is UIComponent)
