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

Is there a way to use GESTURE and TOUCH_POINT together?

Explorer ,
Sep 19, 2014 Sep 19, 2014

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

TOPICS
ActionScript
257
Translate
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

correct answers 1 Correct answer

Explorer , Sep 19, 2014 Sep 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

Translate
Explorer ,
Sep 19, 2014 Sep 19, 2014
LATEST

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

Translate
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