properties = new Array();
for( var property:String in object ) properties.push( property );

Cheers,
Ralf.

On 9/2/07, yms0411 <[EMAIL PROTECTED]> wrote:
>
>   How do you retrieve object property names?
>
> for example, i create an object
> var obj:Object = new Object();
> obj["id"]=000;
> obj["phone"] = 0202020;
> obj["name"] = "john smith";
> .... and so on.
>
> How would i retrieve the property name of obj so that i would get an
> array holding these properties.
> i.e [id,phone,name,....]
>
>  
>



-- 
Ralf Bokelberg <[EMAIL PROTECTED]>
Flex & Flash Consultant based in Cologne/Germany
Phone +49 (0) 221 530 15 35

Reply via email to