2 Replies Latest reply on Jun 1, 2013 4:22 PM by NewiPhoneGames

    Error #2122, checkPolicyFile

    sguilbert
      Hello,

      I need to do some adjustment on a flex application. The application is supposed to look something like this: http://www.gameloft.com/iphone-games/real-soccer-2009/ (the swf at the left, showing the iphone with screenshots of the game).

      When I tested my application in the flex builder, everything seemed fine, but once I exported the project to swf and html and I tested it, I got this error:
      SecurityError: Error #2122: Violation de la sécurité Sandbox : BitmapData.draw : http://fr-new-staging.gameloft.org/minisites/omnia-sfr/flash/flash.swf ne peut pas accéder à http://www.gameloft.com/minisites/omnia-games/flash/proxy.php?url=http://media01.gameloft. com/products/156/default/web/iphone-games/screenshots/screenus001.jpg. Un fichier de régulation est nécessaire, mais l'indicateur checkPolicyFile n'a pas été défini lors du chargement de ce support.

      I am already using loaderContext.checkPolicyFile = true;, and I put a crossdomain.xml file on the root of the server the application is supposed to access (www.gameloft.com). Even with that done, I still have the error, and I'm out of ideas.

      Perhaps I am doing something wrong, can anyone help me with this ?

      Thanks,
      - Stephanie