# Get all properties of an object

**URL:** <https://forum.kirupa.com/t/get-all-properties-of-an-object/252696>\
**Category:** Uncategorized\
**Created:** [February 22, 2008, 3:54pm UTC](https://forum.kirupa.com/t/get-all-properties-of-an-object/252696 "2008-02-22T15:54:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![flashCloud](https://avatars.discourse-cdn.com/v4/letter/f/ee7513/32.png) [@flashCloud](https://forum.kirupa.com/u/flashCloud)\
**Post date:** [February 22, 2008, 3:54pm UTC](https://forum.kirupa.com/t/get-all-properties-of-an-object/252696/1 "2008-02-22T15:54:55Z")

</div>

Hi all,

Is there a way to get the array list of all property name and value of a object?

I was **looking for** something like [properties] array list, sample:

var b:Button = new Button();  
b.label = “click me”;

for(var p=0; p\<b.properties.length; b++) {  
trace("name: " + b.properties[p].name + ", value: "+b.properties[p].value);  
}

—sample result—  
name: enabled, value: true  
name: label, value: click me  
name: visible, value: true  
…//and the rest

Thanks in advance.
