2 Replies Latest reply on May 11, 2010 10:52 PM by webcoder

    Launch failed dialog when I attempt to run AIR code using Flex 4

    NewToFlex2010

      Appreciate any help regarding: I get a "Launch Failed" error dailog with the following message:

       

      If the program is already running, close it before attempting to run.

       

       

      Code 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"

      name="

      TestCromeless" creationComplete="oninit()" height="614" width="804"

      showStatusBar="

      false"

      backgroundAlpha="

      0"

      backgroundColor="

      #E1E9F9">

       

       

      <fx:Declarations>

       

       

      <!-- Place non-visual elements (e.g., services, value objects) here -->

       

       

      </fx:Declarations>

       

       

      <fx:Script>

      <![CDATA[

       

       

      import mx.events.CloseEvent;

       

      public function oninit():void {

      mainBorder.addEventListener(MouseEvent.MOUSE_DOWN, startMove);

      }

       

      public function startMove(event:MouseEvent):void {

      stage.nativeWindow.startMove();

       

      }

      ]]>

       

      </fx:Script>

       

       

      <s:BorderContainer id="mainBorder" x="5" y="5" width="800" height="600"

      borderVisible="

      false" fontSize="12">

       

       

      </s:BorderContainer>

      </s:WindowedApplication>