Skip navigation
Currently Being Moderated

Problem with PDF-embedded Flex4-compiled Flash apps

Mar 24, 2010 4:15 AM

Hi,

 

whenever I try to run a Flash application which is embedded in a PDF (within a Rich Media Annotation) and which was compiled using Flex 4, Adobe Reader 9.3.1 issues three security warnings:

warning.png

warning2.png

warning3.png

If I allow all of them, the Flash content enters a never-ending initialization loop. With Flex 3 this never happend. Flex 3 generated Flash applications ran moothly without any security warning at the beginning. Here are two sample MXML source files, one to be compiled with Flex-3 and another to be compiled with Flex-4:

 

<?xml version="1.0"?>
<!-- hello3.mxml -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
    <mx:Panel title="My Application" 
        paddingTop="10" 
        paddingBottom="10"
        paddingLeft="10" 
        paddingRight="10"
    >
    <mx:Label text="Hello World!" fontWeight="bold" fontSize="24"/>
    </mx:Panel>
</mx:Application>

 

<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
    xmlns:mx="library://ns.adobe.com/flex/mx"
    xmlns:s="library://ns.adobe.com/flex/spark">
    <s:layout>
        <s:VerticalLayout/>
    </s:layout>
    <s:Panel title="My Application"
        paddingTop="10" 
        paddingBottom="10"
        paddingLeft="10" 
        paddingRight="10"
    >
    <s:Label text="Hello World" fontWeight="bold" fontSize="24"/>
    </s:Panel>
</s:Application>

 

What do I have to do to get rid of the warnings and to get PDF-embedded Flash apps running as they used to do when compiled with Flex 3?

 

Thanks for your suggestions,

Alexander

 

PS: the mxmlc option `-use-network=false' doesn't help.

 
Replies
  • Currently Being Moderated
    Mar 24, 2010 9:20 AM   in reply to A. Grahn

    It's the SWZs that are causing the problem. The solution is pretty simple, you can set Flash Builder 4 to compile your project into a single SWF by selecting the Project then Properties -> Flex Build Path -> Library Path and select "Merged into code" from the "Framework linkage" drop down list... now you've got one SWF and no security dialogs.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points