Groups | Blog | Home
all groups > flash actionscript > may 2006 >

flash actionscript : variable concatenation


Verstile
5/29/2006 4:07:10 PM
Hi again all,

Same problem agian but with vars....

I have vars called cf1, cf2 cf3 etc.
I wonder how i can concatenate a var with another var. --->
acounter>="cf"+cN; // cN is a number var = 1, than 2 than 3 etc

how can i get the calue of the variable when testing with a concatenated var?

thx again!!
kglad
5/29/2006 4:17:18 PM
same answer: for a variable on mc's timeline:





for(var i=1;i<100;i++){
mc["c"+i]=i;
Verstile
5/29/2006 5:19:07 PM
thx mate,

learning something new every day!!

take care
kglad
5/29/2006 9:54:05 PM
AddThis Social Bookmark Button