Quick answer to brief referencing question

i have a function called buildLetters, which is in a movie clips timeline. the movie clip has variables in it.

if i do a trace(this[“letter_”+i]); just in a keyframe in the movie clip, it works fine - but if i try and use “this” insided the buildLetters function it doesnt work…how do i reference stuff while doing the function?

i need to do stuff like

this[“letter_”+i]._x = 30;

while inside the buildLetters function. I tried parent["letter"+i]._x = 30; but that dont work. and i cant just do

[“letter_”+i]._x = 30;

can i?

please help me reference the ******es

never mind i worked it out - just make a var outside the function

here = this;

so in the function i can do

here[“letter_”+i]._x = 30;