# as3 variable as attribute

**URL:** <https://forum.kirupa.com/t/as3-variable-as-attribute/330986>\
**Category:** flash\
**Created:** [April 21, 2013, 10:42am UTC](https://forum.kirupa.com/t/as3-variable-as-attribute/330986 "2013-04-21T10:42:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![straris](https://avatars.discourse-cdn.com/v4/letter/s/ad7895/32.png) [@straris](https://forum.kirupa.com/u/straris)\
**Post date:** [April 21, 2013, 10:42am UTC](https://forum.kirupa.com/t/as3-variable-as-attribute/330986/1 "2013-04-21T10:42:31Z")

</div>

Hi,  
I have a simple php- as3 communication where php returns the attributes live1, live2, live3 etc, in as3 i have

```auto
event.target.data.live+i;

```

where i is a simple counter that i want to use in order to have

```auto
event.target.data.live1

```

.  
Instead i am getting undefined1.  
I am sure its a syntax error but i can’t figure out what’s the correct one ☹

Thanks for your time!
