 		    dispatchEvent(dynamicEvent);
         }
     }
+
+    /**
+     *  @private
+     *  dispatch certain stage events from sandbox root
+     */
+    private function stageEventHandler(event:Event):void
+    {
+        if (event.target is Stage)
+            dispatchEvent(event);
+    }
+
+    /**
+     *  @private
+     *  convert MOUSE_LEAVE to MOUSE_UP_SOMEWHERE
+     */
+    private function mouseLeaveHandler(event:Event):void
+    {
+        dispatchEvent(new SandboxMouseEvent(SandboxMouseEvent.MOUSE_UP_SOMEWHERE));
+    }
+
 }
 
 }
-
-
-

				
			try
			{
			    // Remove both listeners in case the system manager was added
			    // or removed from the stage after the listener was added.
				if (stage)
					stage.removeEventListener(type, listener, useCapture);

					super.removeEventListener(type, listener, useCapture);
			}
			catch (error:SecurityError)
			{
				super.removeEventListener(type, listener, useCapture);
			}
		
			return;
		}

import mx.events.DynamicEvent;
import mx.events.FlexEvent;
import mx.events.ResizeEvent;
import mx.events.SandboxMouseEvent;
import mx.preloaders.Preloader;
import mx.utils.LoaderUtil;

