 import flash.geom.Rectangle;
 import flash.system.Capabilities;
 
-import mx.components.FxApplication;
-import mx.components.FxButton;
-import mx.components.Group;
+import spark.components.Application;
+import mx.controls.Button;
+import spark.components.Group;
 import mx.controls.Alert;
 import mx.controls.Button;
 import mx.controls.FlexNativeMenu;
 import mx.controls.HTML;
-import mx.core.windowClasses.FxTitleBar;
+import mx.core.IWindow;
+import mx.core.Window;
+import spark.components.windowClasses.TitleBar;
 import mx.core.windowClasses.StatusBar;
 import mx.events.AIREvent;
 import mx.events.FlexEvent;
 import mx.events.FlexNativeWindowBoundsEvent;
-import mx.graphics.TextBox;
+import spark.primitives.SimpleText;
 import mx.managers.DragManager;
 import mx.managers.NativeDragManagerImpl;
 import mx.styles.CSSStyleDeclaration;
 import mx.styles.StyleManager;
 import mx.styles.StyleProxy;
+import mx.core.mx_internal;
 
 use namespace mx_internal;
 

//
////////////////////////////////////////////////////////////////////////////////

package mx.core
{

import flash.desktop.DockIcon;

     *  @playerversion AIR 1.5
     *  @productversion Flex 4
     */
    public function WindowedApplication()
    {
        super();

