I'm loading data into my flash movie from an xml file like this:
var queryStrings = this.loaderInfo.parameters;
var gallery = queryStrings.galleryName;
var xmlLoader:URLLoader = new URLLoader();
xmlLoader.addEventListener(Event.COMPLETE, loadXML, false, 0, true);
var xmlData:XML = new XML(evt.target.data);
images = xmlData.personal.image;
The problem is; the part that says "personal" is supposed to be dynamic depending on the query string. So effectively, it's meant to be xmlData.gallery
.image - but that doesn't work for obvious reasons!
Does anyone know how I would go about doing that?
Thanks in advance,