IM trying to load an XML file with images and their descriptions and titles however when i attempt to trace the length of the XMLList, it displays as empty. heres the code.
function ImageRotator(xmlPath:String = "photo_gallery.xml"):void
{
loadXML(xmlPath);
}
function loadXML(file:String):void
{
var xmlLoader:URLLoader = new URLLoader();
var [url:URLRequest](http://www.kirupa.com/forum/URLRequest) = new URLRequest(file);
xmlLoader.load(url);
trace("xml loaded")
xml = new XML(xmlLoader.data);
var galleryElements:XMLList = xml.image;
trace(galleryElements.length());
//loadImages();
}