Using a variable in a path?

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?