how to load external xml using air application for flash programmer ?
- by Ayman
hi,
i have faced this problem couple of days ago, while trying to import an external xml file into an AIR application.
import flash.net.URLRequest;
var ldr:Loader = new Loader();
var url:String = "http://willperone.net/rss.php";
var urlReq:URLRequest = new URLRequest(url);
ldr.load(urlReq);
ldr.addEventListener(Event.COMPLETE , function(e) {
trace('Wow, completed ...');
});
ldr.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, function(e) {
trace('IO_ERROR');
});
and always the IO_ERROR shows up.
may i do it wrong or something needs a little of configuration, so please help