# Hit area

**URL:** <https://forum.kirupa.com/t/hit-area/89432>\
**Category:** Uncategorized\
**Created:** [May 8, 2005, 9:24am UTC](https://forum.kirupa.com/t/hit-area/89432 "2005-05-08T09:24:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![leiss](https://avatars.discourse-cdn.com/v4/letter/l/4bbf92/32.png) [@leiss](https://forum.kirupa.com/u/leiss)\
**Post date:** [May 8, 2005, 9:24am UTC](https://forum.kirupa.com/t/hit-area/89432/1 "2005-05-08T09:24:18Z")

</div>

hi again,

thanks to you guys i was able to make a really professional button (see code below). just one more thing: how do i specify the hit area and the down-state (like in the buttons). my button is a word and sofar it is just a button when you point right over a letter…

thanks for your help (-:

stop();

this.onEnterFrame = function(){  
if(rewind == true){  
prevFrame();  
}  
}

this.onRollOver = function(){  
rewind = false;  
play();  
}

this.onRollOut = function(){  
rewind = true;  
}

this.onRelease = function(){  
\_root.gotoAndPlay(3);  
}
