I want to iterate over an ArrayCollection in Flex, while elements can be added and removed.
Since I have not found a way to use the "classic" Iterator, as in Java, which would do the job. I tried the cursor. But this does not work the way I want it to be;) So, how do I do it beautifully?
var cursor:IViewCursor = workingStack.createCursor();
while (!cursor.afterLast)
{
deepFirstSearchModified(cursor.current.node,nodeB,cursor.current.way);
cursor.remove();
cursor.moveNext();
}
source
share