 import flash.display.InteractiveObject;
 import flash.display.Shape;
 import flash.display.Sprite;
+import flash.display.Stage;
 import flash.events.Event;
 import flash.events.EventDispatcher;
 import flash.events.IEventDispatcher;
 import flash.events.MouseEvent;
 import flash.geom.Point;
 import flash.geom.Rectangle;
-import flash.display.Stage;
 import flash.utils.Proxy;
 
 import mx.automation.IAutomationObject;

import mx.core.IFlexModule;
import mx.core.IFlexModuleFactory;
import mx.core.IInvalidating;
import mx.core.ISWFLoader;
import mx.core.IUIComponent;
import mx.core.UIComponentGlobals;
import mx.core.mx_internal;
import mx.effects.Blur;
import mx.effects.IEffect;
import mx.effects.Fade;
import mx.events.DynamicEvent;
import mx.events.EffectEvent;
import mx.events.FlexEvent;

                IUIComponent(window).getExplicitOrMeasuredWidth(),
                IUIComponent(window).getExplicitOrMeasuredHeight());
        }
        
        if (window is ILayoutDirectionElement)
            ILayoutDirectionElement(window).invalidateLayoutDirection();

        if (modal)
        {
