There doesnt seem to be a search associated with just this forum, so I’m posting this question without properly researching the forums because I cannot find a way to lookup relevant information.
I’m attempting to port a game from Facebook to Kongregate. This is an IFrame game using Flash built with the Flex 3.5 SDK.
I have not been able to get the AS3 API to load due to security sandbox violations when testing through the Kongregate Preview. I do not have any issues loading the local API (http://www.kongregate.com/flash/API_AS3_Local.swf)
I have tried
I have tried with and without setting the LoaderContext.
Can someone please enlighten me? Is Kongregate.com’s crossdomain.xml file??
var kongregateApiPath:String = "";
kongregateApiPath = Application.application.parameters[“kongregate_api_path”];
kongregateApiPath = "http://www.kongregate.com/flash/API_AS3_Local.swf”;
var request:URLRequest = new URLRequest(kongregateApiPath);
var loader:Loader = new Loader();
var lc:LoaderContext = new LoaderContext();
lc.securityDomain = SecurityDomain.currentDomain;
lc.applicationDomain = ApplicationDomain.currentDomain;
Error #2044: Unhandled SecurityErrorEvent:. text=Error #2048: Security sandbox violation: http://mydomain.com/Dev/ClientInterface_2.swf cannot load data from http://chat.kongregate.com/flash/API_AS3_de614ba32910c407ff307ec996cd79e4.swf.
Thanks for the help!