 import flash.events.MouseEvent;
 import flash.events.TimerEvent;
 import flash.geom.Point;
+import flash.system.Capabilities;
 import flash.utils.getTimer;
 import flash.utils.setTimeout;
 

		// do not create event listeners for these meta events
		if (eventType == POINT_CLICK_EVENT || eventType == THROTTLED_MOUSE_MOVE_EVENT)
			return;

		// Add a listener to the capture phase so the callbacks will run before the target gets the event.
		stage.addEventListener(eventType, captureListener, true, 0, true); // use capture phase

	private function captureListener(event:Event):void
	{
		// avoid handling redundant events generated by SystemManager
		if (event.cancelable && cancelable)
			return;
		
		// detect deactivated framerate (when app is hidden)
