# How do I make a blank button with a transparent hit area with AS?

**URL:** <https://forum.kirupa.com/t/how-do-i-make-a-blank-button-with-a-transparent-hit-area-with-as/241759>\
**Category:** flash\
**Created:** [October 17, 2007, 8:25pm UTC](https://forum.kirupa.com/t/how-do-i-make-a-blank-button-with-a-transparent-hit-area-with-as/241759 "2007-10-17T20:25:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![js916](https://avatars.discourse-cdn.com/v4/letter/j/8e8cbc/32.png) [@js916](https://forum.kirupa.com/u/js916)\
**Post date:** [October 17, 2007, 8:25pm UTC](https://forum.kirupa.com/t/how-do-i-make-a-blank-button-with-a-transparent-hit-area-with-as/241759/1 "2007-10-17T20:25:13Z")

</div>

Hi all - pardon my first post.  
I’m trying to make a button symbol with a transparent hit area - surounded but a dynamically drawn border. Heres what I have.  
I have a simple AS script that uses goTo and lineTo (plus a randomizer to make sure the buttons are skewed and differnt everytime) to create a “sketchy box” as my button. My script resides in a movie clip withing the “over” state of a button symbol. Now the active hit area is ONLY the line elements. Question : How in the world, using only actionscript an I make a second, transparent area inside of the sketchy lines to make the whole button symble clickable?? Thanks!!
