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:
And I know I can set a dynamic variable using an array:Code:_root.treeListenerFront.treeListener1._alpha=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:for(i=1; i<=32; i++){ _root["treeListenerFront.treeListener"+i]=0; }
What is the best way to go about doing this?Code:_root["treeListenerFront.treeListener"+i+"._alpha"]=0;
Thanks, in advance.




Reply With Quote