I've got 3 movieclips a_1, a_2, a_3
I've got this for loop:
var arr:Array = [a_1,a_2,a_3];
for (var sdt:int= 0; sdt < arr.length; sdt++) {
arr[sdt].pText.htmlText = myText[sdt]["name"];
// and a bunch of other text being set in the array
}
Problem is.... I don't want a_3 to = the 3rd item... I want it to be the last item on the xml. The xml's length.
I know how to do this, but just not with the loop.
Do I have to take it out the loop completely?
Means I've got to paste the whole for loops content for just the a_3 alone.
The XML's length can be referred to as: amountToShow