# Why is this so "glitchy"? (AS2)

**URL:** <https://forum.kirupa.com/t/why-is-this-so-glitchy-as2/251072>\
**Category:** Uncategorized\
**Created:** [February 5, 2008, 5:39am UTC](https://forum.kirupa.com/t/why-is-this-so-glitchy-as2/251072 "2008-02-05T05:39:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![monkeyhead](https://avatars.discourse-cdn.com/v4/letter/m/74df32/32.png) [@monkeyhead](https://forum.kirupa.com/u/monkeyhead)\
**Post date:** [February 5, 2008, 5:39am UTC](https://forum.kirupa.com/t/why-is-this-so-glitchy-as2/251072/1 "2008-02-05T05:39:16Z")

</div>

[http://monkeyheadgraphics.com/theLab/flash/vegan/](http://monkeyheadgraphics.com/theLab/flash/vegan/)

i’m able to get this to work but it feels so sluggish…  
here is my script:

mouseListener.onMouseMove = function(){  
if(\_root.\_xmouse\<= 150){  
var meunTween:Object = new Tween(navMain, “\_x”, Elastic.easeOut, navMain.\_x, -50, 1, true);  
updateAfterEvent();  
}  
if(\_root.\_xmouse\>= 150){  
var meunTween:Object = new Tween(navMain, “\_x”, Elastic.easeOut, navMain.\_x, -300, 1, true);  
updateAfterEvent();  
}  
}

thanks,  
Andre
