# Problems with AS1 to AS2 - type mismatch

**URL:** <https://forum.kirupa.com/t/problems-with-as1-to-as2-type-mismatch/125295>\
**Category:** Uncategorized\
**Created:** [October 12, 2004, 11:38am UTC](https://forum.kirupa.com/t/problems-with-as1-to-as2-type-mismatch/125295 "2004-10-12T11:38:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![oneczech](https://avatars.discourse-cdn.com/v4/letter/o/e95f7d/32.png) [@oneczech](https://forum.kirupa.com/u/oneczech)\
**Post date:** [October 12, 2004, 11:38am UTC](https://forum.kirupa.com/t/problems-with-as1-to-as2-type-mismatch/125295/1 "2004-10-12T11:38:39Z")

</div>

hi …

i have a problem running this script under AS2 (flash player 7) … with AS1 (flash player 6) there is no problem. Only AS2 cause an error …

**Type mismatch.  
var dX = parseInt(\_root.\_xmouse - this.rotateTarget.\_x);**

i have no idea what part of this line is not good enough for AS2

could I ask for help or advice? thanks
