Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6994559
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T19:54:29+00:00 2026-05-27T19:54:29+00:00

I am developing a game for Android using Adobe AIR 3.0, also i am

  • 0

I am developing a game for Android using Adobe AIR 3.0, also i am using Samsung Galaxy S2 to test my game, and is running pretty well with decent 30 fps.

to control the game-play, i am using virtual joystick and some button on screen (e.g. to throw weapon, jump etc).

however it seems that multitouch is not working fine, if i press one button and and in the same time if i down another button. first one stops working.

here is the code snippet which defines multitouch behavior –

Multitouch.inputMode = MultitouchInputMode.TOUCH_POINT;
NativeApplication.nativeApplication.systemIdleMode = SystemIdleMode.KEEP_AWAKE;

for jump button, virtual joystick etc – i am using TouchEvent.TOUCH_BEGIN event.
please let me know what is wrong with touch event.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T19:54:30+00:00Added an answer on May 27, 2026 at 7:54 pm

    http://flex.org/tour-de-mobile-flex/ is worth checking out. It has been helpful to me.

    From the MultiTouch.mxml:

    <?xml version="1.0" encoding="utf-8"?>
    <s:Group xmlns:fx="http://ns.adobe.com/mxml/2009"
             xmlns:s="library://ns.adobe.com/flex/spark">
    
      <fx:Script>
        import mx.core.UIComponent;
        import spark.components.Label;
    
        private var circles:Object = new Object();
      </fx:Script>
    
      <fx:Declarations>
        <fx:Component className="Circle">
          <s:Ellipse width="140" height="140">
            <s:fill>
              <s:SolidColor color="#ff0000"/>
            </s:fill>
          </s:Ellipse>
        </fx:Component>
      </fx:Declarations>
    
      <s:creationComplete>
          Multitouch.inputMode = MultitouchInputMode.TOUCH_POINT;
    
          if (Multitouch.supportsTouchEvents)
          {
            l.text = "maxTouchPoints = " + Multitouch.maxTouchPoints;
    
            addEventListener(TouchEvent.TOUCH_BEGIN, function(event:TouchEvent):void {
              var c:Circle = new Circle();
              c.x = event.localX - 70;
              c.y = event.localY - 70;
              addElement(c);
              circles[event.touchPointID] = c;
            });
            addEventListener(TouchEvent.TOUCH_MOVE, function(event:TouchEvent):void {
              if (circles[event.touchPointID] != null)
              {
                circles[event.touchPointID].x = event.localX - 70;
                circles[event.touchPointID].y = event.localY - 70;
              }
            });
            addEventListener(TouchEvent.TOUCH_END, function(event:TouchEvent):void {
              if (circles[event.touchPointID] != null)
              {
                removeElement(circles[event.touchPointID]);
                delete circles[event.touchPointID];
              }
            });
            addEventListener(TouchEvent.TOUCH_OUT, function(event:TouchEvent):void {
              if (circles[event.touchPointID] != null)
              {
                removeElement(circles[event.touchPointID]);
                delete circles[event.touchPointID];
              }
            });
          }
          else
          {
            l.text = "MultiTouch is not supported on this device";
          }
      </s:creationComplete>
    
      <s:Label id="l" paddingTop="10"/>
    
    </s:Group>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am work my game on android, using OpenGL developing 2D game, running on
Im developing a game for Android using AndEngine. As of now, I want to
I am developing a 2D game for android using lots of sprites. I am
I'm developing 2D Side scroll Android Game, using AndEngine and its BOX2D extension. I
I am developing a game for android phones. When I test my ggame on
I am developing an android game application played using bluetooth. While searching for bluetooth
I am developing a game for the Android platform using flash cs5 and AS3.
I am developing a game in j2me and android . In android using andengine
I am developing a new game for Android. In this I am using Android
I'm developing a game using libgdx in android. I dispose all the textures I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.