Copy link to clipboard
Copied
AS3-mobile
I want move my picture with single finger not two finger.
that coding provide with multitouch function to work but i need move with single finger.
Any solution for this. Need for help.
coding:
Multitouch.inputMode = MultitouchInputMode.GESTURE;
Picture.addEventListener(TransformGestureEvent.GESTURE_PAN, fl_PanHandler_2);
function fl_PanHandler_2(event:TransformGestureEvent):void
{
event.currentTarget.x += event.offsetX;
event.currentTarget.y += event.offsetY;
}
use a touchevent, not transformgestureevent.
Copy link to clipboard
Copied
use a touchevent, not transformgestureevent.
Copy link to clipboard
Copied
Thanks... problem solved
Copy link to clipboard
Copied
you're welcome.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now