     }
 
     private function onDownloadComplete(event:WebViewEvent):void {
-        trace(event.params,"complete");
+        trace(event.params, "complete");
     }
 
     private function onDownloadProgress(event:WebViewEvent):void {

            webView.goForward();
            /*
             var obj:BackForwardList = webView.backForwardList();
             trace()
             trace()
             */
        }
    }


    }

    private function onWindowMiniMaxi(event:NativeWindowDisplayStateEvent):void {
        /*
         !! Needed for OSX, restores webView when we restore from minimized state
         */
        if (event.beforeDisplayState == NativeWindowDisplayState.MINIMIZED) {
            webView.removeFromStage();
            webView.addToStage();
        }
    }

    private function onEscKey(event:WebViewEvent):void {
        if (WebViewANESample.target.stage.displayState == StageDisplayState.FULL_SCREEN_INTERACTIVE) {
            WebViewANESample.target.stage.displayState = StageDisplayState.NORMAL;
