[flexcoders] Actionscript question - for each

2007-11-14 Thread Josh McDonald
Where can I and can't I use for each (foo in bar)? Is it supposed to work with a bunch of iterable objects like ArrayCollection, or is it solely for dynamic objects and arrays? If it does work with higher level objects, how do you build support for it into your classes? Cheers, -Josh -- This

Re: [flexcoders] Actionscript question - for each

2007-11-14 Thread Douglas Knudsen
check this out http://livedocs.adobe.com/flex/201/html/03_Language_and_Syntax_160_16.html DK On Nov 14, 2007 7:54 PM, Josh McDonald [EMAIL PROTECTED] wrote: Where can I and can't I use for each (foo in bar)? Is it supposed to work with a bunch of iterable objects like ArrayCollection, or

Re: [flexcoders] Actionscript question - for each

2007-11-14 Thread Josh McDonald
Yeah I've read that before, but now I think about it some more I think perhaps it does answer my questions - Am I correct then in assuming that ArrayCollection supports for...each by being a dynamic object and exposing items you add via some sort of dynamic property as well as via getItem()?