I have the following code which traverses an XMLList of nodes:
function determineFacilities(facilities:XMLList, item:MovieClip) {
for(var i:int = 0; i > facilities.length(); i++) {
if(Boolean(facilities[i].text()) == true) {
var imgName:String = facilities[i].nodeName + ".png";
// need to load and position image here
}
}
}
If the current node's text is true, then I need to load an Image with the same name as the node (plus the extension) and position it.
How would I go about doing this?
Thanks.