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

  • Home
  • SEARCH
  • 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 8200791
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T06:34:16+00:00 2026-06-07T06:34:16+00:00

I have a simple test flash develop air mobile project with latest sdk and

  • 0

I have a simple test flash develop air mobile project with latest sdk and try to make work zoom gesture. When i launch this on my sgs nothing gonna happen on zoom gesture, just my image added to stage. Here is the sample code:

package  {

    import flash.display.Bitmap;
    import flash.display.MovieClip;
    import flash.ui.Multitouch;
    import flash.events.TransformGestureEvent;
    import flash.ui.MultitouchInputMode;


    public class Main extends MovieClip {

        [Embed(source = "elevator.png")] public static const graph:Class;
        public var elevator:Bitmap;
        public function Main() {

            elevator = new graph();
            elevator.x = 0;
            elevator.y = 0;
            addChild(elevator);
            init();
        }

        private function init():void
        {
            if(Multitouch.supportsGestureEvents)
            {
                setupGestures();
            } else {
                trace("it no worky");
            }
        }

        private function setupGestures():void
        {
            Multitouch.inputMode = MultitouchInputMode.GESTURE;

            elevator.addEventListener(TransformGestureEvent.GESTURE_ROTATE, handleGestures);
            elevator.addEventListener(TransformGestureEvent.GESTURE_ZOOM, handleGestures);
        }

        private function handleGestures(event:TransformGestureEvent):void
        {
            if(event.type == "gestureRotate")
            {
                elevator.rotation += event.rotation;
            } else {
                elevator.scaleX *= event.scaleX;
                elevator.scaleY *= event.scaleY;
            }
        }
    }

}

Where do i mistake?

Updated. Here is application.xml:

<?xml version="1.0" encoding="utf-8" ?> 

<id>air.multitouch</id>
<versionNumber>0.1</versionNumber>
<supportedProfiles>mobileDevice</supportedProfiles>
<filename>multitouch</filename>

<name>multitouch</name>
<description></description>
<copyright></copyright>

<android>
    <manifestAdditions><![CDATA[

        <manifest android:installLocation="auto">
            <uses-permission android:name="android.permission.INTERNET"/>
            <uses-feature android:required="true" android:name="android.hardware.touchscreen.multitouch"/>
        </manifest>

    ]]></manifestAdditions>
</android>
<iPhone> 
    <InfoAdditions><![CDATA[ 

        <key>UIStatusBarStyle</key> 
        <string>UIStatusBarStyleBlackOpaque</string> 
        <key>UIRequiresPersistentWiFi</key> 
        <string>NO</string>
        <key>UIPrerenderedIcon</key>  
        <true/>
        <key>UIApplicationExitsOnSuspend</key>
        <true/>

        <key>UIDeviceFamily</key>
        <array>
            <!-- iPhone support -->
            <string>1</string> 
            <!-- iPad support -->
            <!--<string>2</string>-->
        </array>

    ]]></InfoAdditions> 
    <requestedDisplayResolution>high</requestedDisplayResolution>
</iPhone> 

<initialWindow>
    <title>multitouch</title>
    <content>multitouch.swf</content>
    <visible>true</visible>
    <fullScreen>true</fullScreen>
    <autoOrients>false</autoOrients>
    <aspectRatio>landscape</aspectRatio>
    <renderMode>direct</renderMode>
</initialWindow>

<icon>
    <image48x48>icons/icon_48.png</image48x48>
    <image57x57>icons/icon_57.png</image57x57>
    <image72x72>icons/icon_72.png</image72x72>
    <image114x114>icons/icon_114.png</image114x114>
    <image512x512>icons/icon_512.png</image512x512>
</icon>

<!-- 
AIR options:
http://livedocs.adobe.com/flex/3/html/File_formats_1.html#1043413

AIR mobile options:
http://help.adobe.com/en_US/air/build/WSfffb011ac560372f-5d0f4f25128cc9cd0cb-7ffe.html

Android manifest documentation:
http://developer.android.com/guide/topics/manifest/manifest-intro.html
-->

UP. Here is example .apk https://dl.dropbox.com/u/78904724/multitouch.apk

  • 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-06-07T06:34:20+00:00Added an answer on June 7, 2026 at 6:34 am

    I think those gestures work only for InteractiveObject-s, so wrap it (elevator) in some Sprite.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this simple test project just to test the IncludeExceptionDetailInFaults behavior. public class
I have a simple test case failing in Django: Model (app/models.py): from django.db import
I have a simple test application (C# console application) that does an HTTP GET
I have created a simple test form with FormBorderStyle = FixedToolWindow by default and
I have a simple unit test case (extensive question here ) on a configuration
I have made a simple test application for the issue, two winforms each containing
I have a very simple test page for PHP session. <?php session_start(); if (isset($_SESSIONS['views']))
I have a very simple test program, running on Solaris 5.8: #include <stdio.h> #include
I have a simple RabbitMQ test program randomly enqueuing messages, and another reading them,
I have a simple controller test, containing a.o. the following code: context POST :create

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.