Really Simply Variable Question

[LEFT]ok so this is probably really easy.

But how do you add a random end to a variable like say

for(i=0; i<5; i++) {
d = i;
}

but I want the variable not to be d but it create a new variable each time so I can

trace(d0+d1+d2+d3);
ect?

I’ve searched a bit can’t find anything!
[/LEFT]


for(i=0; i<5; i++) {
this["d"+i] = i;
}

might work

thanks :slight_smile:

yea it does work…