Note that there are some explanatory texts on larger screens.

plurals
  1. POAir zoom gesture doesn't work at all
    primarykey
    data
    text
    <p>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:</p> <pre><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; } } } } </code></pre> <p>Where do i mistake?</p> <p><strong>Updated.</strong> Here is application.xml:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8" ?&gt; </code></pre> <p></p> <pre><code>&lt;id&gt;air.multitouch&lt;/id&gt; &lt;versionNumber&gt;0.1&lt;/versionNumber&gt; &lt;supportedProfiles&gt;mobileDevice&lt;/supportedProfiles&gt; &lt;filename&gt;multitouch&lt;/filename&gt; &lt;name&gt;multitouch&lt;/name&gt; &lt;description&gt;&lt;/description&gt; &lt;copyright&gt;&lt;/copyright&gt; &lt;android&gt; &lt;manifestAdditions&gt;&lt;![CDATA[ &lt;manifest android:installLocation="auto"&gt; &lt;uses-permission android:name="android.permission.INTERNET"/&gt; &lt;uses-feature android:required="true" android:name="android.hardware.touchscreen.multitouch"/&gt; &lt;/manifest&gt; ]]&gt;&lt;/manifestAdditions&gt; &lt;/android&gt; &lt;iPhone&gt; &lt;InfoAdditions&gt;&lt;![CDATA[ &lt;key&gt;UIStatusBarStyle&lt;/key&gt; &lt;string&gt;UIStatusBarStyleBlackOpaque&lt;/string&gt; &lt;key&gt;UIRequiresPersistentWiFi&lt;/key&gt; &lt;string&gt;NO&lt;/string&gt; &lt;key&gt;UIPrerenderedIcon&lt;/key&gt; &lt;true/&gt; &lt;key&gt;UIApplicationExitsOnSuspend&lt;/key&gt; &lt;true/&gt; &lt;key&gt;UIDeviceFamily&lt;/key&gt; &lt;array&gt; &lt;!-- iPhone support --&gt; &lt;string&gt;1&lt;/string&gt; &lt;!-- iPad support --&gt; &lt;!--&lt;string&gt;2&lt;/string&gt;--&gt; &lt;/array&gt; ]]&gt;&lt;/InfoAdditions&gt; &lt;requestedDisplayResolution&gt;high&lt;/requestedDisplayResolution&gt; &lt;/iPhone&gt; &lt;initialWindow&gt; &lt;title&gt;multitouch&lt;/title&gt; &lt;content&gt;multitouch.swf&lt;/content&gt; &lt;visible&gt;true&lt;/visible&gt; &lt;fullScreen&gt;true&lt;/fullScreen&gt; &lt;autoOrients&gt;false&lt;/autoOrients&gt; &lt;aspectRatio&gt;landscape&lt;/aspectRatio&gt; &lt;renderMode&gt;direct&lt;/renderMode&gt; &lt;/initialWindow&gt; &lt;icon&gt; &lt;image48x48&gt;icons/icon_48.png&lt;/image48x48&gt; &lt;image57x57&gt;icons/icon_57.png&lt;/image57x57&gt; &lt;image72x72&gt;icons/icon_72.png&lt;/image72x72&gt; &lt;image114x114&gt;icons/icon_114.png&lt;/image114x114&gt; &lt;image512x512&gt;icons/icon_512.png&lt;/image512x512&gt; &lt;/icon&gt; &lt;!-- 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 --&gt; </code></pre> <p></p> <p><strong>UP.</strong> Here is example .apk <a href="https://dl.dropbox.com/u/78904724/multitouch.apk" rel="nofollow">https://dl.dropbox.com/u/78904724/multitouch.apk</a></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload