Random Color Generator for AS 2.0 or 3.0

Hi,

I’ve come across the random color generator which appears to have been written back in Flash 5 when you were still allowed to give instances numbers instead of only letters. Hence I’m having problems making this script work in CS3 when I want to add more movie clips (and thus type in additional instance names - that have to be numbers). Anybody? Any? Ideas?

Thank you,
Stefan

http://www.kirupa.com/developer/flash5/randomcolor.htm