Emulator with Touch events using AIR

Discuss the variety of Android powered devices from various manufacturers.

Emulator with Touch events using AIR

Postby patomique » Wed Jan 05, 2011 12:29 pm

Hi,

I would like to know whether there is any Android emulator that would support touch events when running AIR content.
When running this simple code, I always get a "false" value when testing Multitouch.supportsTouchEvents (see http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/ui/Multitouch.html.
Here is the simple actionScript code:
Code: Select all
package
{
   import flash.display.Sprite;
   import flash.ui.Multitouch;
   import flash.ui.MultitouchInputMode;
   import flash.text.TextField;
   
   public class ActionScriptAIR extends Sprite
   {
      public function ActionScriptAIR()
      {
         super();
         
         var myTextField:TextField = new TextField();
         addChild(myTextField);
         myTextField.width = 300;
         myTextField.height = 20;
         Multitouch.inputMode = MultitouchInputMode.TOUCH_POINT;
         var touchSupport:Boolean = Multitouch.supportsTouchEvents;
         var gestureSupport:Boolean = Multitouch.supportsGestureEvents;
         myTextField.text = "touchSupport: " + touchSupport + " gestureSupport: " + gestureSupport;
      }
   }
}


I would appreciate any help on this.

Thanks in advance,
Ludo
patomique
Once Poster
Once Poster
 
Posts: 1
Joined: Wed Jan 05, 2011 12:06 pm

Top

Return to Android Devices

Who is online

Users browsing this forum: MSNbot Media and 1 guest