 				_mouseX = e.pageX - canvas.offsetLeft;
 				_mouseY = e.pageY - canvas.offsetTop;
 				if (hasEventListener(flashType)) {
-					if(flashType!=MouseEvent.MOUSE_MOVE){
+					if (flashType != MouseEvent.MOUSE_MOVE){
 						dispatchEvent(new MouseEvent(flashType,true,false,_mouseX,_mouseY,null,e.ctrlKey,e.altKey,e.shiftKey,(e.buttons!=null)?(e.buttons>0):isButtonDown,e.wheelDelta));
 					}else {
 						needSendMouseMove = e;

					needSendMouseMove = null;
				}
				if (needSendTouchMove) {
					dispatchEvent(new TouchEvent(TouchEvent.TOUCH_MOVE, true, false, 0, true, _mouseX, _mouseY));
					needSendTouchMove = null;
				}
				dispatchEvent(new Event(Event.ENTER_FRAME));

				case "touchcancel":
					flashType = TouchEvent.TOUCH_END;
					flashType2 = MouseEvent.MOUSE_UP;
					isButtonDown = false;
					break;
				case "touchend":
					flashType = TouchEvent.TOUCH_END;
					flashType2 = MouseEvent.MOUSE_UP;
					isButtonDown = false;
					break;
				case "touchmove":
					flashType = TouchEvent.TOUCH_MOVE;
