everything works, the code is:
protected function executeTest():void { var loader:URLLoader = new URLLoader(); var req:URLRequest = new URLRequest('http://85.95.163.90/vk_pc/game.php'); loader.addEventListener (Event.COMPLETE, completeHandler, false, 0, true); loader.addEventListener(IOErrorEvent.IO_ERROR, errorHandler); loader.addEventListener(SecurityErrorEvent.SECURITY_ERROR, errorHandler); loader.load (req); } protected function completeHandler(event:Event):void { trace( event.target.data ); } private function errorHandler(event:Event):void { trace("Error: " + event); }
Also, check that the crossdomain is correct, ideally it should be like this:
<?xml version="1.0"?> <!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd"> <cross-domain-policy> <allow-access-from domain="*" to-ports="*"/> </cross-domain-policy>