# Uh...hit test?

**URL:** <https://forum.kirupa.com/t/uh-hit-test/217927>\
**Category:** Uncategorized\
**Created:** [March 2, 2007, 11:41pm UTC](https://forum.kirupa.com/t/uh-hit-test/217927 "2007-03-02T23:41:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![indiasfinest](https://avatars.discourse-cdn.com/v4/letter/i/5e9695/32.png) [@indiasfinest](https://forum.kirupa.com/u/indiasfinest)\
**Post date:** [March 2, 2007, 11:41pm UTC](https://forum.kirupa.com/t/uh-hit-test/217927/1 "2007-03-02T23:41:13Z")

</div>

i do not understand why my hittest wont work. output panel doesnt give me any errors but my movie clip just sits there. anyone wanna takea look?

```php
onClipEvent (enterFrame) {
    if (_root.ball.hitTest(_root.ground)) {
        _root.gravity *= -1
    }
}
//and i tried this
onClipEvent (enterFrame) {
    if (_root.ball, hitTest(_root.ground)) {
        _root.gravity *= -1
    }
} 

```
