[Flashcoders] Question with substring and type conversion.

2007-09-10 Thread paul
Hey, I need to extract the last digit from a loaded section of MovieClips. Named sequentially mc1 mc2 mc3...mc125. I so I want to convert the mc Names to Strings and then use something like this myVar = McStringName.substr(-1); It is all being done within a setInterval(func, 10); - running

Re: [Flashcoders] Question with substring and type conversion.

2007-09-10 Thread Omar Fouad
use toString(mc1).substr(-1); On 9/10/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hey, I need to extract the last digit from a loaded section of MovieClips. Named sequentially mc1 mc2 mc3...mc125. I so I want to convert the mc Names to Strings and then use something like this myVar =