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

    AIR Application freezes on startup


      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"
           width="100%" height="100%"  backgroundColor="#D5D2D2"
        title="Test Flash"
          import mx.controls.Alert;
          import flash.ui.Multitouch;
          public function initializeApp() : void
          public function onTouchTap(event : TouchEvent) : void {
           Alert.show("onTouchTap method","test");
          public function onClick(event : MouseEvent) : void {
           Alert.show("onClick method","test");    
        <mx:TextInput id="upcTextInput" fontSize="14" x="10" y="10"
             height="36" width="100" borderStyle="solid" />

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


      Any clue as to what is going on?