“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

21

Likes

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