7 Replies Latest reply on Mar 21, 2013 12:26 PM by leejk

    FlexPaper - Cannot load remote SWF files into AIR application?

    RandomReado Level 1

      I'm trying to load a SWF into a simple app for test purposes. The SWF has been compiled using swftools-0.9.1 using the following command:


      /usr/bin/pdf2swf 10993.PDF -o 10993.SWF -f -T 9


      The SWF loads fine in a browser.


      Using the following Flex code together with Flex SDK 4.6:


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

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







                  import flash.utils.setTimeout;


                  private function onCreationComplete():void


                      swf.SwfFile = 'http://my/domain/10993.SWF';




          <flexpaper:FlexPaperViewer width="100%" height="100%" id="swf"/>



      The crossdomain.xml file is:


      <?xml version="1.0"?>

      <!DOCTYPE cross-domain-policy SYSTEM "http://www.adobe.com/xml/dtds/cross-domain-policy.dtd">


        <allow-access-from domain="*"/>



      The end result is:


      SecurityError: Error #3207: Application-sandbox content cannot access this feature.


      Any idea why this is happening?