# Button "OVER" state

**URL:** <https://forum.kirupa.com/t/button-over-state/15039>\
**Category:** flash\
**Created:** [March 5, 2003, 4:41pm UTC](https://forum.kirupa.com/t/button-over-state/15039 "2003-03-05T16:41:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![batmitra](https://avatars.discourse-cdn.com/v4/letter/b/85e7bf/32.png) [@batmitra](https://forum.kirupa.com/u/batmitra)\
**Post date:** [March 5, 2003, 4:41pm UTC](https://forum.kirupa.com/t/button-over-state/15039/1 "2003-03-05T16:41:37Z")

</div>

hi  
is there a way to make the over state of a button with action script? what i want to do is to load a movieclip with an image wich has an invisible button behind it,well i want to put a red rectangle around the movieclip when we pass with mouse over it, how can i do this?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 5, 2003, 4:48pm UTC](https://forum.kirupa.com/t/button-over-state/15039/2 "2003-03-05T16:48:47Z")

</div>

You put your red rectangle where you want it to be, set it as \_visible=0, and then when you rollOver your button, you do theRectangle.\_visible=1;

pom :cowboy:
