24 Replies Latest reply on Sep 22, 2010 9:00 AM by learner_doug

    Still trying to get SWF to run in Release Build

    learner_doug Level 1

      The code below works great while in the development mode in Flash Builder 4, but does not load the SWF in the release build.  I've simplifed it here to it's bare essentials:  popUp window which can load a swf (made in Captivate 4).  Any suggestion are appreciated because this little problem is holding up a very large project.

       

      Thanks.

       

      <?xml version="1.0" encoding="utf-8"?>

      <s:Application

       

       

      xmlns:fx="http://ns.adobe.com/mxml/2009"

      xmlns:s="

      library://ns.adobe.com/flex/spark"

      xmlns:mx="

      library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600">

       

       

      <fx:Declarations>

       

       

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

       

       

      </fx:Declarations>

       

       

      <s:TitleWindow xmlns:fx="http://ns.adobe.com/mxml/2009"

      xmlns:s="

      library://ns.adobe.com/flex/spark"

      xmlns:mx="

      library://ns.adobe.com/flex/mx" width="305" height="100" title="EBS New | Order Writer Milestone 1 - Queue" close="titlewindow1_closeHandler(event)" chromeColor="#868FD1">

       

       

      <fx:Script>

      <![CDATA[

       

       

      import mx.events.CloseEvent;

       

      import mx.managers.PopUpManager;

       

       

      protected function titlewindow1_closeHandler(event:CloseEvent):void

      {

      loader.unloadAndStop();

      PopUpManager.removePopUp(

       

      this);

      }

       

       

      protected function textarea1_clickHandler(event:MouseEvent):void

      {

       

       

      this.move(1,1);

      loader.load(

      "EBS_new_OW1.swf");

      }

       

      ]]>

       

      </fx:Script>

       

       

       

      <s:TextArea x="6" y="3" height="30" width="172" text="Interactive Video Lesson" color="#0E21A4" contentBackgroundAlpha="0" borderVisible="false" editable="false" mouseChildren="false" useHandCursor="true" buttonMode="true" click="textarea1_clickHandler(event)"/>

       

       

      <s:TextArea x="6" y="34" height="27" width="172" text="View or Print Transcript" color="#0E21A4" contentBackgroundAlpha="0" borderVisible="false" editable="false" mouseChildren="false" useHandCursor="true" buttonMode="true"/>

       

       

       

      <mx:SWFLoader id="loader" x="0" y="0" depth="10" width="1024" height="905"/>

       

       

      </s:TitleWindow>

       

       

      </s:Application>