2 Replies Latest reply on Jun 29, 2010 4:49 PM by Flex harUI

    swf is not accessible from javascript  after uploading to server

    newflexcoder

      Hi,

       

              I have  a flex application which does the resizing of  application using javascript. The  code works well both in Firefox and IE when I am accessing it from local server. When I tried to access it after uploading to the remote server, the resizing code is not working in firefox.

       

      When I tried to debug , I found  that the document.getElementById('myswf.swf') returns null. But this is is the case with Firefox. I checked th js files and crossdomain.xml everthing is uploaded. The history folder is also uploaded.

       

      Do I need to specify anything in crossdomain.xml apart from this?

       

      <?xml version="1.0"?>
      <cross-domain-policy>
          <allow-access-from domain="*"  secure="false" />
      </cross-domain-policy>

       

       

       

      Thanks