You could use a different variable name in the inner loop, that way it won't change the object in the outer loop.
On 2/21/09, Libby <libbychan...@yahoo.com> wrote: > hi, flexCoders! > thanks for all ur help in the past! > > Does Flex maintain your record pointer while reading an xml file? > basically what i want to do is read each line and when I hit certain > values, read on for 4 or 5 records, then return to the original > process without starting back at the last record read at the first > read. I can do this the hard way of course by maintaining my own > pointer and treating the file as a giant array, but surely there is an > easier way? > > > for each (var xmlNode:XML in xml.children()) { > // do stuff > // if(xmlNode.something==aValue) { > for each (var xmlNode:XML <---- read on into the file > > thanks, > Libby > > > > ------------------------------------ > > -- > Flexcoders Mailing List > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt > Alternative FAQ location: > https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 > Search Archives: > http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links > > > >