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:
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.
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.
North America
Europe, Middle East and Africa
Asia Pacific