3 Replies Latest reply on Jul 5, 2009 9:27 PM by Foxchx

    Flex wont launch my AIR app

    john isaacks Level 1

      Now whenever I launch my air app I get this error:

       

      Process terminated without establishing connection to debugger.


      Command:


      "C:\Program Files\Adobe\Flex Builder 3\sdks\3.2.0\bin\adl.exe" D:\fromLapTop\lapDocs\Flex\Workspaces\MothersRings\MothersRingsAir\bin-debug\MothersRings Air-app.xml D:\fromLapTop\lapDocs\Flex\Workspaces\MothersRings\MothersRingsAir\bin-debug


      Output from command:


      error while loading initial content

      I verified everything was in the locations specified. I also search on google and found a post somewhere that said I should change the xml namespace I tried: http://ns.adobe.com/air/application/1.1 and http://ns.adobe.com/air/application/1.5 but then it says it can't resolved <mx:WindowedApplication> as a component.
      Here is the source code:
      <?xml version="1.0" encoding="utf-8"?>
      <mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical"
      modalTransparencyColor="#663333"
      backgroundGradientAlphas="[1.0, 1.0]"
      backgroundGradientColors="[#663333, #663333]"
      verticalAlign="middle" horizontalAlign="center" width="100%" height="100%"
      applicationComplete="onApplicationComplete()">
      <mx:Script>
      <![CDATA[
      private static const neededForCompilation:AirGeneralImplementation = null;
      private function onApplicationComplete():void
      {
      var can:MothersRings = new MothersRings();
      this.addChild(can);
      //can.labelMessage = "Loaded in an AIR Application ";
      stage.displayState = StageDisplayState.FULL_SCREEN_INTERACTIVE;
      }
      ]]>
      </mx:Script>
      <mx:Style source="style/style.css"/>
      <mx:Style>
      .header{
      fontSize:"18";
      fontWeight:"bold";
      }
      TileList{
      backgroundColor:#996666;
      borderColor:#330000;
      rollOverColor:#cc9999;
      borderThickness:1;
      }
      </mx:Style>
      </mx:WindowedApplication>
      Can anyone help me out?
      Thanks!!