I have create a Flash EXE in AS3. At the time of launch the exe loads a XML from a web link to validate itself.
var urlRequest:URLRequest = new URLRequest("http://abc.com:8090/validate.xml");
var urlLoader:Loader = new Loader();
urlLoader.addEventListener(Event.COMPLETE, startLoad);
urlLoader.load(urlRequest);
I have also place a crossdomain.xml at the root. When I launch the EXE, the debugger shows “SecurityError: Error #2000: No active security context.”
Please help…
I just found a strange thing that when I’m writing the code on the timeline, its working (no security errors). But when I’m writing this code in the document class its not working.
A few ideas:
Can you post your crossdomain.xml? in order to work locally as an EXE I’m guessing it needs:
<allow-access-from domain=”*” />