# Define hit area?

**URL:** <https://forum.kirupa.com/t/define-hit-area/89565>\
**Category:** Uncategorized\
**Created:** [May 9, 2005, 7:52pm UTC](https://forum.kirupa.com/t/define-hit-area/89565 "2005-05-09T19:52:39Z")\
**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 9, 2005, 7:52pm UTC](https://forum.kirupa.com/t/define-hit-area/89565/1 "2005-05-09T19:52:39Z")

</div>

hei,

how can i achieve the following: see swf-file

the grey rectangle should start fading in when i reach the red square (hit area), not already when you cross the edges of the grey square…

the “button” is a movieclip.

see also pdf:  
first layer (layer 3) has the button-coding  
second + third layer contain the motion-tweened rectangle/square.

thanks for helping :te:
