AS1 syntax conversion to AS2

Hello!

I am having trouble converting some old syntax -

Flash is having trouble with the removeMovieClip(“square” add counter);

Any suggestions would be appreciated:


    while (Number(counter)<=31) {
        removeMovieClip("square" add counter);
        counter = Number(counter)+1;
    }