I am unsure of why I am unable to populate an array with the proper information. For a minute, this was working, but all of a sudden, it did not. I did a load and it did not work after I switched it over to an .as file and called it.
Please assist.
ActionScript
xmlData.onLoad = function(success:Boolean)
{
if(success)
{
xmlData.ignoreWhite = true;
var xmlRoot:XMLNode = xmlData.firstChild;
arrTemp = xmlRoot.childNodes;
trace("Data:
" + xmlData + "
");
trace("Root:
" +xmlRoot.childNodes+ "
");
trace("Number of Photos here:"+ arrTemp.length + "
");
trace(“ok”);
}else{
trace("no");
}
}
XML
<pictures>
<pic num="1" desc="I could fight anybody with this wasted smile alone!" title="Smiley!">1.jpg</pic>
<pic num="2" desc="Stylus and Glenn Butt cheesing for Nurina. I'm more tired than you!" title="Alpha/Zero 3 Bros.">2.jpg</pic>
<pic num="3" desc="Nurina and Glenn Butt :D. It's down there! Yeah there! I'll go get it!" title="Beauty and the Butt!">3.jpg</pic>
<pic num="4" desc="Jorge, Nurina's crew, and Pablo in the background, and...he's trying to fit in! Watch out!" title="Super Stalker Pablo">4.jpg</pic>
</pictures>