 import mx.events.ResizeEvent;
 import mx.events.SandboxMouseEvent;
 import mx.preloaders.Preloader;
+import mx.utils.DensityUtil;
 import mx.utils.LoaderUtil;
 
 // NOTE: Minimize the non-Flash classes you import here.

        _screen.width = w;
        _screen.height = h;

        if (isStageRoot)
        {
            //_width = stage.stageWidth;
            //_height = stage.stageHeight;

            // TODO: Finalize scaling behavior
            var scale:Number = 1;

            root.scaleX = root.scaleY = scale;
            _width = stage.stageWidth / scale;
            _height = stage.stageHeight / scale;
        }

        if (event)

            Loader(parent).contentLoaderInfo.applicationDomain :
            info()["currentDomain"] as ApplicationDomain;

        // FIXME (egeorgie): the "screen" that we pass to the preloader
        // doesn't get the right size here, since stage is not
        // yet resized at this point if running in AIR on device.
        // We'll receive a stage resize event before the first enter frame event.
        
        // Initialize the preloader.
        preloader.initialize(
            usePreloader,
