If the path and the file extension are static. Say for example:
path = images/
ext=.jpg
fileName=img0,img1,img2...........
Then you can play with for loop.
the xml file will just a few line:
PHP Code:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<root>
<images nNum="251" nExt=".jpg">
<image>images/img</image>
</images>
</root>
Actionscript Code:
var xml:XML = new XML();
xml.onLoad = function(success:Boolean) {
if (success) {
nNum=(xml.firstChild.nextSibling.firstChild.nextSibling.attributes.nNum);
nExt=(xml.firstChild.nextSibling.firstChild.nextSibling.attributes.nExt);
nPath=(xml.firstChild.nextSibling.firstChild.nextSibling.firstChild.nextSibling.firstChild.nodeValue);
for(var i=0;i<nNum;i++){
this["imgPath"+i]=(nPath+i+nExt);
trace(this["imgPath"+i]);
}
}
};
xml.load("http://www.domainName/xmlFileName.xml",_root);
Regards
marlopax