I have set up a "for" loop that I would like to have set the alpha for a number of variables. I know I can set a variable this way:

Code:
_root.treeListenerFront.treeListener1._alpha=0;
And I know I can set a dynamic variable using an array:

Code:
for(i=1; i<=32; i++){
     _root["treeListenerFront.treeListener"+i]=0;
}
But I can't seem to use the second method to set the alpha value. For instance, the following isn't working for me:

Code:
_root["treeListenerFront.treeListener"+i+"._alpha"]=0;
What is the best way to go about doing this?

Thanks, in advance.