Thursday, October 1, 2009

how to avoid security problem while using crossdomain in flex

when u use crossdomain.xml fill while usimg flash and flex domain.. you have possibility to face security error in flex side...on that time use the following code in ur init() method....

  Security.allowDomain("*");
  Security.loadPolicyFile("https://play2beatme.com/crossdomain.xml");

and dont forget to import package for that security :import flash.system.Security;

i hope this will help u.........

No comments:

Post a Comment