Why this happening
some cases like if you are not organized your XML schema that time it will throw error. But some cases if you are generating a PHP based or dynamic XML there are some cases to add some Special charcter after the XML and it should be invisible. If any one facing such issue please try with below code
function LoadXML(e:Event):void {
try{
if(e.target.data!="" && e.target.data!=" ") {
var tempstr:String = e.target.data;
tempstr = tempstr.substr(0, tempstr.lastIndexOf("")+10);
xmlData=new XML(tempstr);
LenghtofNodes=xmlData.images.image.length();
album_name.text="Album name : "+xmlData.AlbumDetails.Album[0].attribute('AlbumName')
numbs_photo.text="Total photos : "+LenghtofNodes
for (var i:Number=0; i
ID.push(xmlData.images.image[i].attribute('id'));
caption.push(xmlData.images.image[i].attribute('caption'));
createTileList(i);
}
}
}
catch(er:TypeError){
}
}