how to load external xml using air application for flash programmer ?
Posted
by Ayman
on Stack Overflow
See other posts from Stack Overflow
or by Ayman
Published on 2010-04-14T06:21:24Z
Indexed on
2010/04/14
6:23 UTC
Read the original article
Hit count: 349
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
© Stack Overflow or respective owner