Button Hit State

I’ve added a button to my main timeline. I only want part of the button to be clickable so I draw a rectangle in the Hit state of the button to declare which section of the button to be clickable. However, when I run it I’m able to click on any part of the button and perform the desired action. How do I make it so that only clicking within the defined rectangular area in the Hit state will perform the desired action?

My code is in the button onRelease event. Should I use a different event to get this desired affect? Thanks!