Taka Kojima wrote:
E4X is a much better approach than looping through an XML object and adding
items to an XMLList.


In this case, yes. But only because it will end up being the same code that you would have written anyway. The condition syntax is nothing but an inline search loop. And the loop doesn't stop at the first match.

So if you just want the first match or want to search from a specific offset, do your own loop and don't relay on a syntax feature that hides the loop from you.

_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to