# Onmouseover confusion

**URL:** <https://forum.kirupa.com/t/onmouseover-confusion/27204>\
**Category:** Uncategorized\
**Created:** [July 31, 2003, 3:31am UTC](https://forum.kirupa.com/t/onmouseover-confusion/27204 "2003-07-31T03:31:32Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![peace](https://avatars.discourse-cdn.com/v4/letter/p/c68b51/32.png) [@peace](https://forum.kirupa.com/u/peace)\
**Post date:** [July 31, 2003, 3:31am UTC](https://forum.kirupa.com/t/onmouseover-confusion/27204/1 "2003-07-31T03:31:32Z")

</div>

When i make an “onmouseover” why does the the object which has to appear when mouse goes over the original button(on stage), becomes a button too ?  
i put keyframes in down and hit states but the the object which has to appear on “onmouseover” appears but disappears on mouse down n hit state .  
You’ll understand my question more after lookin at the .fla.

Thankyou.

---

<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:** [July 31, 2003, 4:11am UTC](https://forum.kirupa.com/t/onmouseover-confusion/27204/2 "2003-07-31T04:11:28Z")

</div>

Because when you make keyframes one after another, it will copy from the last keyframe. It took me a while to find out what you meant, but I think I understand. Go to your hit state (only) and erase the circle. That should do it for you!!

---

<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:** [July 31, 2003, 4:12am UTC](https://forum.kirupa.com/t/onmouseover-confusion/27204/3 "2003-07-31T04:12:03Z")

</div>

check your hit area and erase the top circle thingy from there its detecting that area as part of the button thats your problem 😉

---

<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:** [July 31, 2003, 4:12am UTC](https://forum.kirupa.com/t/onmouseover-confusion/27204/4 "2003-07-31T04:12:19Z")

</div>

i didnt get your question clearly.

any object that you put in button, will become button too.  
there are no hit state. the hit is to define the area in which your button will work. it becomes important when your button is only a word ;not a rectangle or circle.

---

<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:** [July 31, 2003, 1:18pm UTC](https://forum.kirupa.com/t/onmouseover-confusion/27204/5 "2003-07-31T13:18:19Z")

</div>

Thankyou for helpin, one prob. is solved. Now what if i want the object which appears on “onmouseover” to stay even when the mouse is down ? second question , if i want to change the shape of a btn. on “onmouseover” and want it to remain changed even when mouse is down, how can i do it ?  
Thankyou.

---

<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:** [July 31, 2003, 1:30pm UTC](https://forum.kirupa.com/t/onmouseover-confusion/27204/6 "2003-07-31T13:30:01Z")

</div>

In answer to both of your questions; here’s the deal.  
The hit frame is just to let flash know where you want your button to be active. It has no graphical purpose.

The other three frames, up, over, and down are what you are going to see for those three states. Both of your questions are dealing with what you will see on certain events/locations of the mouse. With that in mind, for each frame that you are in, what you see on the stage is what you’re going to get. In answer to your questions, you want the shape of a button on ‘over’ to stay the same on ‘down’; you need to make the images in the ‘over’ frame the same as the ‘down’ frame.

Now if you want a button that changes on rollOver and then stays like that when you rollOut, that takes some actionScripting.

---

<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:** [August 2, 2003, 10:26pm UTC](https://forum.kirupa.com/t/onmouseover-confusion/27204/7 "2003-08-02T22:26:14Z")

</div>

Thankyou.

---

<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:** [August 2, 2003, 10:33pm UTC](https://forum.kirupa.com/t/onmouseover-confusion/27204/8 "2003-08-02T22:33:03Z")

</div>

np
