# This\["something"+i\] not working

**URL:** <https://forum.kirupa.com/t/this-something-i-not-working/111265>\
**Category:** Uncategorized\
**Created:** [May 25, 2004, 11:32am UTC](https://forum.kirupa.com/t/this-something-i-not-working/111265 "2004-05-25T11:32:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![flu](https://avatars.discourse-cdn.com/v4/letter/f/a6a055/32.png) [@flu](https://forum.kirupa.com/u/flu)\
**Post date:** [May 25, 2004, 11:32am UTC](https://forum.kirupa.com/t/this-something-i-not-working/111265/1 "2004-05-25T11:32:47Z")

</div>

I hope I will put this good in english words…

I have a few dynamic generated buttons, and I need on their action to change values in some dynamic generated textfields.

## the part of the code we’re interested is this: CODE:

nr\_rinduri = 20; // number caming from somewhere else  
this[“mc”+j].onRelease = function()

{ num = Number(this.\_name.substring(2))+1;  
nrInceput = (num-1)\*nr\_rinduri;  
trace(“NR inceput=” + nrInceput);

for(k=nrInceput;k\<(nrInceput+nr\_rinduri);k++)

{  
trace(k);  
contor = k-((num-1)\*nr\_rinduri);  
trace(contor);  
trace(myXML.firstChild.childNodes[1].childNodes[k].attributes.cd\_prodotto);

codice0.text = myXML.firstChild.childNodes[1].childNodes[k].attributes.cd\_prodotto;  
codice0.setTextFormat(myformat);  
test = num;  
}

* * *

so… : if I put codice0.text = …, codice1.text = … it’s working, but when I"m trying to do a this[“codice”+contor].text = … it’s not working…

Is this because we are inside another this[] … the one for the button and when I"m refering to this[“codice”+contor] the flash see that I want to do something at the button and not at the textfield…

Sorry if it’s not very clear, please ask…and I"ll try to explain better…
