Touch equivalent of mouseX?
Is there something like tapX or touchX I tried all combinations I could think of the top of my head and did some searching but nothing comes up.
Any ideas?
Is there something like tapX or touchX I tried all combinations I could think of the top of my head and did some searching but nothing comes up.
Any ideas?
Multitouch.inputMode = MultitouchInputMode.TOUCH_POINT;
stage.addEventListener(TouchEvent.TOUCH_BEGIN, touchBegin);function touchBegin(e:TouchEvent):void {
ball.x = e.stageX;
ball.y = e.stageY;//or depending on the situation
//ball.x=e.localX;
//ball.y=e.localY;
}
![]()
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.