# Dynamically targeting properties of an object

**URL:** <https://forum.kirupa.com/t/dynamically-targeting-properties-of-an-object/199023>\
**Category:** flash\
**Created:** [August 30, 2006, 4:54pm UTC](https://forum.kirupa.com/t/dynamically-targeting-properties-of-an-object/199023 "2006-08-30T16:54:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![schmichael](https://avatars.discourse-cdn.com/v4/letter/s/ea5d25/32.png) [@schmichael](https://forum.kirupa.com/u/schmichael)\
**Post date:** [August 30, 2006, 4:54pm UTC](https://forum.kirupa.com/t/dynamically-targeting-properties-of-an-object/199023/1 "2006-08-30T16:54:26Z")

</div>

Hi there, I have an object that has properties that are numbered numerically but I cant seem to access them dynamically. Can anyone help?  
Thanks!

[AS]var myObj:Object = new Object()  
myObj.p1 = 100;  
myObj.p2 = 200;  
myObj.p3 = 300;  
for (i=1; i\<4; i++){  
tmp = [“myObj”][“p”+i]  
trace(tmp)  
}  
[/AS]
