Skip to main content
Known Participant
April 7, 2014
Answered

Mobile Gesture Event- Pan Event(Problem)

  • April 7, 2014
  • 1 reply
  • 783 views

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;

}

This topic has been closed for replies.
Correct answer kglad

use a touchevent, not transformgestureevent.

1 reply

kglad
Community Expert
kgladCommunity ExpertCorrect answer
Community Expert
April 7, 2014

use a touchevent, not transformgestureevent.

garykangAuthor
Known Participant
April 9, 2014

Thanks... problem solved

kglad
Community Expert
Community Expert
April 10, 2014

you're welcome.