# Hit Area Query

**URL:** <https://forum.kirupa.com/t/hit-area-query/226336>\
**Category:** flash\
**Created:** [May 20, 2007, 12:19pm UTC](https://forum.kirupa.com/t/hit-area-query/226336 "2007-05-20T12:19:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![horner2693](https://avatars.discourse-cdn.com/v4/letter/h/e47c2d/32.png) [@horner2693](https://forum.kirupa.com/u/horner2693)\
**Post date:** [May 20, 2007, 12:19pm UTC](https://forum.kirupa.com/t/hit-area-query/226336/1 "2007-05-20T12:19:40Z")

</div>

Hi,

Could anyone explain why when I have this code targeting a movie clip on my root timeline, it performs the gotoAndPlay function wherever the mouse is clicked, instead of when I click on the movie clip itself?

Any help would be appreciated, thanks

```auto

this.pencil.onMouseUp=function(){
 pencil.gotoAndPlay("up");
}

```
