Re: [flexcoders] Re: Array Collection

2010-02-20 Thread Alex Harui
The type depends on what the items in the ArrayCollection are. You can use Object if you’re not sure. The cost of using Object is generally ignorable. On 2/20/10 11:31 AM, criptopus sd_br...@ntlworld.com wrote: Something like ... for each (var member in membData)

RE: [flexcoders] Re: Array Collection

2009-02-05 Thread Tracy Spratt
If it is a dynamic object, you can use for..in or for..each loops to enumerate all of the properties. Note, If you have an object, like: var oLookup:Object = {p1:v1, p2:v2, pa:va, pb:vb}; You can randomly access the properties like this: var sPropertyName:String = pa; var