# How to convert flash lite 1.1 to AS2?

**URL:** <https://forum.kirupa.com/t/how-to-convert-flash-lite-1-1-to-as2/326655>\
**Category:** flash\
**Created:** [January 3, 2012, 7:26am UTC](https://forum.kirupa.com/t/how-to-convert-flash-lite-1-1-to-as2/326655 "2012-01-03T07:26:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![deniset](https://avatars.discourse-cdn.com/v4/letter/d/b5a626/32.png) [@deniset](https://forum.kirupa.com/u/deniset)\
**Post date:** [January 3, 2012, 7:26am UTC](https://forum.kirupa.com/t/how-to-convert-flash-lite-1-1-to-as2/326655/1 "2012-01-03T07:26:59Z")

</div>

I have the following code in flash lite 1.1 and would like to convert it into AS2

```auto
longN = length(point);
for (i=1; i<8; i++) {
    if (i>longN) {
        tellTarget ("s" add i) {
            gotoAndStop(11);
        }
    } else {
        test = substring(point, i, 1);
        tellTarget ("s" add i) {
            gotoAndStop(../:test+1);
        }
    }
}
stop();

```

Here is what I tried but it seems like not working:

```auto
function showNum(){          
  longN = length(point);    
    for (i=1; i<8; i++) {
        if (i>longN) {
            this["s" + i].gotoAndStop(11);        
        } else {
            test = substring(point, i, 1);
            this["s" + i].gotoAndStop(_root.test+1);            
        }
    }    
}

showNum();

```

BTW, what’s the different between length(point) and point.length? When I use point.length, it trace out undefined. Thanks in advance!
