# Using a variable in a path?

**URL:** https://forum.kirupa.com/t/using-a-variable-in-a-path/241541
**Category:** flash
**Created:** [October 15, 2007, 1:02pm UTC](https://forum.kirupa.com/t/using-a-variable-in-a-path/241541 "2007-10-15T13:02:33Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![CoDe\_ReD](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/code_red/32/336_2.png) [@CoDe\_ReD](https://forum.kirupa.com/u/CoDe_ReD)
#### Post date: [October 15, 2007, 1:02pm UTC](https://forum.kirupa.com/t/using-a-variable-in-a-path/241541/1 "2007-10-15T13:02:33Z")

</div>

Hi people,

I’m currently kinda stuck on an app Im developing.

I want to use a variable within a path.

Lets say my var’s name is “i” and it consists of a number that will be changed.

So its basically var i = 0 and in a loop it says i++

Now I want to target this var in a path.

Lets say app.“textfield”+i.text = “test”

That actionscript is wrong, but it’s there to give you an idea of what I’m trying to accomplish.

So basically: how do I target an object with a variable path?
