# About AS2.0 (type mismatch)

**URL:** <https://forum.kirupa.com/t/about-as2-0-type-mismatch/131397>\
**Category:** Uncategorized\
**Created:** [December 15, 2004, 10:40am UTC](https://forum.kirupa.com/t/about-as2-0-type-mismatch/131397 "2004-12-15T10:40:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![murka390](https://avatars.discourse-cdn.com/v4/letter/m/c37758/32.png) [@murka390](https://forum.kirupa.com/u/murka390)\
**Post date:** [December 15, 2004, 10:40am UTC](https://forum.kirupa.com/t/about-as2-0-type-mismatch/131397/1 "2004-12-15T10:40:12Z")

</div>

since now i have used AS 1.0, but my new script requires AS 2.0  
the problem is that i have this old AS1.0 codeline

digit = duration-parseInt((elapse-begin)/1000);

and when i publish it with AS 2.0 it says: Type mismatch.

i’m new to AS2.0, what should i do with that line?
