Here is my code:
var xmlLoader:URLLoader = new URLLoader();
var xmlData:XML = new XML();
xmlLoader.addEventListener(Event.COMPLETE, LoadXML);
xmlLoader.load(new URLRequest("http://www.classiccinemas.com/feed/theater.asp?house_id=2258"));
function LoadXML(e:Event):void {
xmlData = new XML(e.target.data);
var xList:XMLList = xmlData.channel.item;
var len:int = xList.length() + 3;
for (var i:int = 0; i<len; i++) {
content.htmlText += "<a href='http://www.movietickets.com/house_detail.asp?exid=cla&house_id=2258'>" + xList*.title.toString() + "</a>" + '
' + xList*.description.toString() + '
' + '
';
}
}
Error Message:
TypeError: Error #1010: A term is undefined and has no properties.
at ClassicCinemas_SPECb_fla::MainTimeline/LoadXML()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/onComplete()
Everything works fine locally but when I upload to my server the text field remains blank.
Any Ideas?