Skip to main content
ove damgaardh65403168
Participant
December 1, 2020
Question

“Pan Event” code snippet in Animate - not working. Why?

  • December 1, 2020
  • 0 replies
  • 84 views

Hi out there

Can anyone in here tell me, how to modify the below “Pan Event” code snippet in Animate - and make it work:

 

Multitouch.inputMode = MultitouchInputMode.GESTURE;

movieClip_1.addEventListener(TransformGestureEvent.GESTURE_PAN, fl_PanHandler);

function fl_PanHandler(event:TransformGestureEvent):void

{

            event.currentTarget.x += event.offsetX;

            event.currentTarget.y += event.offsetY;

}

 

The movieClip is visible in simulater, but you can’t pan it.

It is very frustrating that this Pan feature is not working because I really need it in my App.

    This topic has been closed for replies.