      *  @private
      *  Returns a Function handler that resizes the view source HTML component with the stage.
      */
-    private function viewSourceResizeHandler(html:HTML):Function
+    private function viewSourceResizeHandler(html:Object):Function
     {
         return function (e:FlexNativeWindowBoundsEvent):void
         {

            
            const winX:int = (screenWidth - winWidth) / 2;
            const winY:int = (screenHeight - winHeight) / 2;
            
            const html:HTML = new HTML();
            {
                html.width  = winWidth;
                html.height = winHeight;

import flash.filesystem.File;
import flash.geom.Point;
import flash.geom.Rectangle;
import flash.system.ApplicationDomain;

import mx.controls.Alert;
import mx.controls.FlexNativeMenu;
import mx.core.IVisualElement;
import mx.core.IWindow;
import mx.core.mx_internal;
