Hi,
I’m having about 100 objects that I want to name using a for-loop. The problem is I want them named in a particular way. I don’t want the names to be
NOT! m1, m2, m3 … m10, m11, m12, … m100
but m001, m002, m003 … m010, m011, m012, … m100.
Is there an easy way to do this? I think if there were a way to say the number should be 3 digits long so it adds the '0’s.
I want to be able to call them by their name in a for-loop later.
for ( var i = 0; i < 100; i ++ )
{
m+i.play();
}
Help appreciated!