# hitTest trouble

**URL:** https://forum.kirupa.com/t/hittest-trouble/31857
**Category:** flash
**Created:** [September 28, 2003, 10:41am UTC](https://forum.kirupa.com/t/hittest-trouble/31857 "2003-09-28T10:41:16Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![jerry](https://avatars.discourse-cdn.com/v4/letter/j/5daacb/32.png) [@jerry](https://forum.kirupa.com/u/jerry)
#### Post date: [September 28, 2003, 10:41am UTC](https://forum.kirupa.com/t/hittest-trouble/31857/1 "2003-09-28T10:41:16Z")

</div>

Hey there!  
I’m messing around with the following code:

```auto
onEnterFrame = function() {
        speed = 6;
        if (_root.fakeHit.hitTest( _root._xmouse, _root._ymouse, true)) {
                _root.bar01._y += ((_root._ymouse-_root.bar01._y)/speed);
                
        }
}

```

When you rollOver or enter the movieclip “fakeHit”, the movieclip “bar01” starts to move, simple enough. But when you rollOut the movement stops imidetly!? Why is that, and is there a way to make the movement ease out when rolling out the hit area?

See the attached .fla
