     private function stageEventHandler(event:Event):void
     {
         if (event.target is Stage)
+            // dispatch them from mouseCatcher so capture phase listeners on 
+            // systemManager will work
             mouseCatcher.dispatchEvent(event);
     }
 

			return;

        if (!isTopLevel())
            dispatchEvent(new FlexEvent(FlexEvent.NEW_CHILD_APPLICATION));

		// Generated code will bring in EmbeddedFontRegistry
		Singleton.registerClass("mx.core::IEmbeddedFontRegistry",


        // This listener is intended to run before any other KeyboardEvent listeners
        // so that it can redispatch a cancelable=true copy of the event. 
        if (getSandboxRoot() == this)
        {
            addEventListener(KeyboardEvent.KEY_DOWN, keyDownHandler, true, 1000);
            addEventListener(MouseEvent.MOUSE_WHEEL, mouseWheelHandler, true, 1000);
        }
        if (isTopLevelRoot() && stage)
        {
            stage.addEventListener(KeyboardEvent.KEY_DOWN, keyDownHandler, false, 1000);
            stage.addEventListener(MouseEvent.MOUSE_WHEEL, mouseWheelHandler, false, 1000);
        }

        var docFrame:int = (totalFrames == 1)? 0 : 1;
		addEventListener(Event.ENTER_FRAME, docFrameListener);
