Just use the for statement but in a for each manner, e.g.

for (var fieldName in someObject)
{
    trace(fieldName);
}

It's one of those subtle tricks in ECMAScript (which could've been
named better, or maybe more intuitive with different syntax, e.g.
Python's.)

(that's the general idea - code might not be exactly correct.)

2009/4/5 Deniz Davutoglu <d...@7ist.com>:
> Hi,
> I need to get field names in array collection  but when I use for each method 
> I got just values not field names.
> When I assign array collection as  a data provider of datagrid it 
> automatically retrieves field names, it means that it is some method in as3 
> to get field names.
> Does any one know how to get it?
>
> Thanks in advance.
> Deniz
>
>
>
> ------------------------------------
>
> --
> 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
>
>
>
>

Reply via email to