2 Replies Latest reply on Oct 5, 2009 10:03 AM by Joe ... Ward

    Problem with loading swf

    newflexcoder Level 1

      Hi,

       

              I've an AIR application which is loading an swf file to swfloader. Its working properly when its running from builder. But not showing the swf file after exporting  it as an air installer package and run it on  desktop.The swf   file is stored in src itself.The swf file was generated using flash.


      Any help will be appreciated.

       

      Thanks in advance.

        • 1. Re: Problem with loading swf
          Vamshi_Challa

          Hi,

           

          It might be security issue.Air uses application sandbox.

          You are trying to load the content from non-application sand box to

          application sandbox.

           

          Any one of the following may give solution to this error.

           

          1.using HTMLLoader to load swf files.

          2.using loadbytes.

          3.creating sandboxbridge.

           

          You can check the loadbytes method in the attachment.

           

           

          vamshi.

          2009/10/5 newflexcoder <forums@adobe.com>

           

          >

          Hi,

          >

                  I've an AIR application which is loading an swf file to swfloader.

          Its working properly when its running from builder. But not showing the swf

          file after exporting  it as an air installer package and run it on

          desktop.The swf   file is stored in src itself.The swf file was generated

          using flash.

          >

          Any help will be appreciated.

          >

          Thanks in advance.

          >

          • 2. Re: Problem with loading swf
            Joe ... Ward Level 4

            It probably isn't a security error since the SWF is installed as part of the app and so is in the application security sandbox already.

             

            Make sure that the SWF is included in the application package and is in the directory where you expect it (check the .air file with a .zip tool, or check the install directory).