0 Replies Latest reply on Oct 10, 2010 6:13 PM by ci-bro

    AIR Application freezes on startup

    ci-bro

      I've been working on a AIR project for some time and tried to

      incorpoate some gestures and multitouch events into the project. When I tried to run the project, it

      froze. So I created a new project that just has a simple textInput component and references a

      TouchEvent, and it worked. I then copied my project to another location, stripped everything out of it, and

      copy-and-pasted the working code into the shell that I created. Same problem. The application froze.

      I verified that the properties were the same between the two projects, but still no success. The code

      for the little test project is

       

      <?xml version="1.0" encoding="utf-8"?>
      <s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
              xmlns:s="library://ns.adobe.com/flex/spark"
              xmlns:mx="library://ns.adobe.com/flex/mx"
           creationComplete="initializeApp()"
           click="onClick(event)"
           width="100%" height="100%"  backgroundColor="#D5D2D2"
        title="Test Flash"
        >
        <fx:Script>
         <![CDATA[
          import mx.controls.Alert;
          import flash.ui.Multitouch;
         
          public function initializeApp() : void
          {
           maximize();
          }
          public function onTouchTap(event : TouchEvent) : void {
           Alert.show("onTouchTap method","test");
          }
          public function onClick(event : MouseEvent) : void {
           Alert.show("onClick method","test");    
          }
         ]]>
        </fx:Script>
       
        <mx:TextInput id="upcTextInput" fontSize="14" x="10" y="10"
             visible="true" 
             click="onClick(event)"
             height="36" width="100" borderStyle="solid" />
       
      </s:WindowedApplication>

      If the method onTouchTap (which is not referenced any place) is removed, both projects run.

       

      Any clue as to what is going on?

       

      ci-bro