[as2] - Converting AS1 code to AS2.0?

Hi all,

I have the following code that’s working withing the context of a Flash8 file.

Suffice to say, this old code only works under AS1.0.

Could anyone give any pointers in making this 2.0 friendly?

Cheers

i = 2;
while (Number(i)<150) {
duplicateMovieClip(“isk1”, “isk” add i, i);
setProperty(“isk” add i, _rotation, random(360));
scalefactor = 40+Number(random(60));
setProperty(“isk” add i, _xscale, scalefactor);
setProperty(“isk” add i, _yscale, scalefactor);
i = Number(i)+1;
}