1 Reply Latest reply: Mar 24, 2010 9:20 AM by Joel Geraci RSS

    Problem with PDF-embedded Flex4-compiled Flash apps

    A. Grahn Community Member

      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.