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

problem with Multitouch.inputMode in AS3

Guest
Nov 04, 2013 Nov 04, 2013

Hi everybody.

My problem is that when i write 2 differents "Multitouch.inputMode" in my script (for Androïd), in every case, only the first written works.... How can i do to conserve the two behaviors ? (i'm a new french user of AS3...)

An example of my very simple AS3 code

stop();

Multitouch.inputMode = MultitouchInputMode.GESTURE;

oc_carte.addEventListener(TransformGestureEvent.GESTURE_PAN, fl_PanHandler_5);

function fl_PanHandler_5(event:TransformGestureEvent):void

{

    event.currentTarget.x += event.offsetX;

    event.currentTarget.y += event.offsetY;

}

oc_carte.addEventListener(TransformGestureEvent.GESTURE_ZOOM, fl_ZoomHandler_2);

function fl_ZoomHandler_2(event:TransformGestureEvent):void

{

    oc_carte.scaleX *= event.scaleX;

    oc_carte.scaleY *= event.scaleY;

}

Multitouch.inputMode = MultitouchInputMode.TOUCH_POINT;

oc_retourmenu.addEventListener(TouchEvent.TOUCH_TAP, fl_TapHandler_1);

function fl_TapHandler_1(event:TouchEvent):void

{

   

    MovieClip(this.root).gotoAndPlay(1, "Séquence 2");

   

}

TOPICS
ActionScript
685
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
Community Expert ,
Nov 04, 2013 Nov 04, 2013

you can't in one swf.

you must choose one or the other in any one swf.  you could try loading two different swfs.

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
Guest
Nov 09, 2013 Nov 09, 2013

Thank you for this.  I still do it...

Berst regards.

Vincent.

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
Community Expert ,
Nov 09, 2013 Nov 09, 2013
LATEST

you're welcome.

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