I have this simple code to play with xml
var testXML:XML = <family>
<father name1="tom" age="5" ></father>
<mother name1="tomylee" age="55" ></mother>
<sister name1="sister1" age="35" ></sister>
</family>;
for each(var element:XML in testXML.elements()) {
trace(element.@name1);
}
It should get only one output like
tom
tomylee
sister1
tom
tomylee
sister1
tom
tomylee
sister1
and many more like that. Looks like it keeps repeating. The croll bar keeps moving down. I think loop is not stopping