# Movieclip with hittest?

**URL:** <https://forum.kirupa.com/t/movieclip-with-hittest/237989>\
**Category:** Uncategorized\
**Created:** [September 6, 2007, 3:37am UTC](https://forum.kirupa.com/t/movieclip-with-hittest/237989 "2007-09-06T03:37:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![vin23leo](https://avatars.discourse-cdn.com/v4/letter/v/b77776/32.png) [@vin23leo](https://forum.kirupa.com/u/vin23leo)\
**Post date:** [September 6, 2007, 3:37am UTC](https://forum.kirupa.com/t/movieclip-with-hittest/237989/1 "2007-09-06T03:37:26Z")

</div>

hey guys,

i have a problem

i have a hittest area, i have a character you can use to walkaround, once you hit the hittest area, a movieclip will show, i also have a button that can also play the movieclip  
now i got both work both the button and hittest. problem is when you walk over the hittest area the movieclip will show, once you leave the area the movieclip its still there, i want to be able to walk over(show movieclip), walk away, (movieclip dissapear), over and over

here is my code for the button

on (release) {  
\_root.gameup.gotoAndPlay(1)  
}

and then on the hittest movieclip (for the guy to walk over) i have:

onClipEvent (enterFrame) {  
if (this.hitTest(\_root.Guy) && \_root.gameup.\_currentframe==1) {  
\_root.gameup.gotoAndPlay(1);

}  
}

to give you guys a better idea, here is my fla, pleazzz help

[http://www.student.cofa.unsw.edu.au/…45/helpplz.fla](http://www.student.cofa.unsw.edu.au/~z3162245/helpplz.fla)

cheers
