# Button Not Showing Over Frame

**URL:** <https://forum.kirupa.com/t/button-not-showing-over-frame/226667>\
**Category:** flash\
**Created:** [May 23, 2007, 1:04am UTC](https://forum.kirupa.com/t/button-not-showing-over-frame/226667 "2007-05-23T01:04:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Flamingtoaster](https://avatars.discourse-cdn.com/v4/letter/f/c37758/32.png) [@Flamingtoaster](https://forum.kirupa.com/u/Flamingtoaster)\
**Post date:** [May 23, 2007, 1:04am UTC](https://forum.kirupa.com/t/button-not-showing-over-frame/226667/1 "2007-05-23T01:04:21Z")

</div>

Hi, what I need is to make my button display its over frame when I move the mouse over it. I can do it using onClipEvent(…) { fine, but I cant use that… I think. The code I am using is in frame 1 of the timeline and is this:

```auto
mybtnmc.onPress = function() {
 trace("hi");
}

```

As soon as I make the button have a function when pressed, it doesn’t show the over frame. I’ll attach my fla so you can see it, but I would like a solution that allows me to use the above code and no code on the actual button movieclip because it wont be there until I insert it later during runtime. Thanks for your help.
