Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FlexPaper does not work with AIR applications? #372

Open
GoogleCodeExporter opened this issue May 10, 2015 · 0 comments
Open

FlexPaper does not work with AIR applications? #372

GoogleCodeExporter opened this issue May 10, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

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" 
                       xmlns:s="library://ns.adobe.com/flex/spark" 
                       xmlns:mx="library://ns.adobe.com/flex/mx"
                       xmlns:flexpaper="com.devaldi.controls.flexpaper.*"
                       creationComplete="onCreationComplete()">
    <fx:Script>
        <![CDATA[
            import flash.utils.setTimeout;

            private function onCreationComplete():void
            {
                swf.SwfFile = 'http://my/domain/10993.SWF';
            }
        ]]>
    </fx:Script>
    <flexpaper:FlexPaperViewer width="100%" height="100%" id="swf"/>
</s:WindowedApplication>

The crossdomain.xml file is:

<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM 
"http://www.adobe.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
  <allow-access-from domain="*"/>
</cross-domain-policy>

The end result is:

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

Any idea why this is happening?

Original issue reported on code.google.com by [email protected] on 8 Mar 2013 at 8:19

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant