• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

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

New Here ,
Dec 01, 2020 Dec 01, 2020

Copy link to clipboard

Copied

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.

Views

61

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
no replies

Have something to add?

Join the conversation