Try

var array:Array = new Array();
for (var str:String in obj)
    array.push(str);



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,....]
>
>  
>

Reply via email to