Home > AMFPHP, ActionScript 3, Flash Platform > Updated: crossdomain.xml fixes amfphp for april flash player release

Updated: crossdomain.xml fixes amfphp for april flash player release

March 31st, 2008

This updated crossdomain.xml example fixes all of the issues that people were having with the last post that I had. Please update your server with the following file. Remember that you need to remove any spaces as this has to be well formated xml! Make sure that you place the file in your web root directory of the top level domain of the site. This is commonly the public_html or www directory in the server so that you can access the file at www.yourdomain.com/crossdomain.xml

If you do not add this file you will get a Error #2044: Unhandled SecurityErrorEvent:. text=Error #2048: Security sandbox violation:
Which will toss an error that looks something like this out of the player.

Security sandbox error

crossdomain.xml










Again the purpose of a crossdomain.xml file is to allow external domains to access your content. What has changed in the new release is that we can not change the header anymore even if its on the same domain name. This means that you need to add a crossdomain file even if you are not accessing your amfphp installation from an external domain name. More information on policy files!

Policy file Syntax

Preparing for the Flash Player 9 April 2008 Security Update

AMFPHP, ActionScript 3, Flash Platform

  1. Asai
    March 31st, 2008 at 16:47 | #1

    Thanks, Wade.

    I (we) really do appreciate your taking on this responsibility.

  2. April 3rd, 2008 at 09:58 | #2

    Hey, anyway to contact you by mail ?
    Please use mine…

  3. April 8th, 2008 at 12:15 | #3

    After doing more tests, this does seem to be the correct player as I cannot add custom headers to other-domain calls.

    However, from my testing, no changes will need to be made to any crossdomain.xml files and no crossdomain.xml files will need to be added where they did not exist previously. If you get different results please let me know.

  4. Smash
    October 31st, 2008 at 18:32 | #4

    I have a problem… I don’t write in root directory but only in sub directory… Flash find always file in root also if i indicate the file is in another directory
    Sigh…
    Solution?

  1. March 31st, 2008 at 15:46 | #1
  2. April 6th, 2008 at 16:03 | #2
  3. April 8th, 2008 at 17:25 | #3
  4. April 11th, 2008 at 04:29 | #4