 		
         modalWindow.tabEnabled = false;
         
-        const s:Rectangle = sm.screen;
+        const screen:Rectangle = sm.screen;
         const g:Graphics = modalWindow.graphics;
         
         var c:Number = 0xFFFFFF;

            var appHeight:Number;
            var parentWidth:Number;
            var parentHeight:Number;
            var s:Rectangle;            // the screen
            var rect:Rectangle;
            var clippingOffset:Point = new Point();
            var pt:Point;

        // trace("createModalWindow: drawing modal " + s);
        g.clear();
        g.beginFill(c, 100);
        g.drawRect(screen.x, screen.y, screen.width, screen.height);
        g.endFill();

        if (hasEventListener("updateModalMask"))
