# Convert as 1.0 script to 2.0

**URL:** <https://forum.kirupa.com/t/convert-as-1-0-script-to-2-0/322506>\
**Category:** flash\
**Created:** [May 23, 2011, 9:35pm UTC](https://forum.kirupa.com/t/convert-as-1-0-script-to-2-0/322506 "2011-05-23T21:35:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nnnswordfish](https://avatars.discourse-cdn.com/v4/letter/n/65b543/32.png) [@nnnswordfish](https://forum.kirupa.com/u/nnnswordfish)\
**Post date:** [May 23, 2011, 9:35pm UTC](https://forum.kirupa.com/t/convert-as-1-0-script-to-2-0/322506/1 "2011-05-23T21:35:39Z")

</div>

Hy 🙂 i have very nice counter and i want to use it but i have problem it in as 1.0 and i want to use it in as 2.0 with flash payer 10.0. i uploaded file below and if someone can modify it in as 2.0 please help me 🙂

\*\*the code is very short \*\*

```auto
onClipEvent(load){
    _visible = 0
    n_1 = 0
    vel = 22
    txt = n_1
}
onClipEvent(enterFrame){
    if(parti){
        _visible = true
        n_1 = Number(txt)
        diff = ((n_2 - n_1)/vel)
        n_3 += diff
        txt = int(n_3)
    }
}

```

```auto
onClipEvent(data){
    numero = Number(numero)
    _root.visite.n_2 = numero
    _root.visite.parti = true
    _root.connecting._visible = 0
}

```

hope u help me guys 🙂
