Skip to main content
Inspiring
September 19, 2014
Answered

Is there a way to use GESTURE and TOUCH_POINT together?

  • September 19, 2014
  • 1 reply
  • 270 views

Hi !

I wonder if there's a way to use GESTURE and TOUCH_POINT together in a mobile (Android) flash app.

I want a specific graphic object to react to TOUCH_POINT (i.e.: Tap & Drag) and to specific GESTUREs (i.e.: Two finger Zoom),

but noticed that each of those requires a different configuration setting to the Multitouch.inputMode global variable:

Tap TOUCH_TAP requires:

Multitouch.inputMode=MultitouchInputMode.TOUCH_POINT;

where GESTURE_ZOOM requires:

Multitouch.inputMode = MultitouchInputMode.GESTURE;

I know this is possible in Mobile applications, see for example GoogleMaps.

But I wonder it is possible using Flash and Adobe Air...

Thanks,

Koby

This topic has been closed for replies.
Correct answer kobygold

I found a solution!

Instead of TOUCH_TAP use MouseEvent.CLICK and then you can use GESTURE for the Multitouch.inputMode.


p.s.: For long press functionality: instead of TouchEvent.TOUCH_BEGIN use MouseEvent.MOUSE_DOWN

and instead of TouchEvent.TOUCH_END / TouchEvent.TOUCH_OUT / TouchEvent.TOUCH_ROLL_OUT use MouseEvent.MOUSE_UP)

For anyone who may need this...

Koby

1 reply

kobygoldAuthorCorrect answer
Inspiring
September 19, 2014

I found a solution!

Instead of TOUCH_TAP use MouseEvent.CLICK and then you can use GESTURE for the Multitouch.inputMode.


p.s.: For long press functionality: instead of TouchEvent.TOUCH_BEGIN use MouseEvent.MOUSE_DOWN

and instead of TouchEvent.TOUCH_END / TouchEvent.TOUCH_OUT / TouchEvent.TOUCH_ROLL_OUT use MouseEvent.MOUSE_UP)

For anyone who may need this...

Koby