# AS1 syntax conversion to AS2

**URL:** <https://forum.kirupa.com/t/as1-syntax-conversion-to-as2/231595>\
**Category:** flash\
**Created:** [July 6, 2007, 1:34am UTC](https://forum.kirupa.com/t/as1-syntax-conversion-to-as2/231595 "2007-07-06T01:34:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Head\_In\_A\_Pan](https://avatars.discourse-cdn.com/v4/letter/h/c67d28/32.png) [@Head\_In\_A\_Pan](https://forum.kirupa.com/u/Head_In_A_Pan)\
**Post date:** [July 6, 2007, 1:34am UTC](https://forum.kirupa.com/t/as1-syntax-conversion-to-as2/231595/1 "2007-07-06T01:34:56Z")

</div>

Hello!

I am having trouble converting some old syntax -

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

Any suggestions would be appreciated:

```auto

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

```
