# Mouseover Problems

**URL:** https://forum.kirupa.com/t/mouseover-problems/7602
**Category:** flash
**Created:** [November 4, 2002, 7:41am UTC](https://forum.kirupa.com/t/mouseover-problems/7602 "2002-11-04T07:41:21Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![KgirL](https://avatars.discourse-cdn.com/v4/letter/k/a9adbd/32.png) [@KgirL](https://forum.kirupa.com/u/KgirL)
#### Post date: [November 4, 2002, 7:41am UTC](https://forum.kirupa.com/t/mouseover-problems/7602/1 "2002-11-04T07:41:21Z")

</div>

I made an square into a button and in the OVER state, added some extra pictures and text which I wanted displayed.

I put my mouse over the square and I see my desired effect. But when I put my mouse over the empty space where the mouseover images will appear, they pop up too!

Can someone tell me why this happens and how I can fix it? ☹

---

<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: [November 4, 2002, 7:56am UTC](https://forum.kirupa.com/t/mouseover-problems/7602/2 "2002-11-04T07:56:25Z")

</div>

You will need to call the pics some other way 🙂

Try this…

Put all of your pics in an empty movie clip (Insert/Symbol).

Now, Position the clip where you want. Give the clip the instance name “images”. After you figure out where you want it, drag Frame 1 of your images clip so that it becomes frame 2.

Add a stop() action to Frame 1 (which is blank) and Frame 2 (which has the pics).

On the button, add these actions…

```auto
on (rollOver) {
_root.images.gotoAndStop(2);
}
on (rollOut) {
_root.images.gotoAndStop(1);
}

```

That should work.

I would set up an example .fla file, but I use MX, so you wouldn’t be able to open it.

---

<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: [November 4, 2002, 8:03am UTC](https://forum.kirupa.com/t/mouseover-problems/7602/3 "2002-11-04T08:03:43Z")

</div>

it sounds to me like you have too much info in your HIT state…

you should have a keyframe with the place you want triggered when you roll over it with a mouse filled with a rectangle/elipse, and only that space…

If you haven’t put a blank keyframe in the HIT state, then drew a rectangle, then you are using the OVER state as your HIT state…

I hope I didn’t confuse you…

Rev:elderly:

---

<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: [November 4, 2002, 8:14am UTC](https://forum.kirupa.com/t/mouseover-problems/7602/4 "2002-11-04T08:14:14Z")

</div>

I think you misread rev.

The problem is that she added images to the over state.

And even though these images don’t show, if you mouse over their location in the Over state, they will appear, even if you aren’t over the button. Because technically, these are part of the button 🙂

---

<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: [November 4, 2002, 8:17am UTC](https://forum.kirupa.com/t/mouseover-problems/7602/5 "2002-11-04T08:17:57Z")

</div>

if you don’t put any kind of keyframe (like it is by default) into the HIT frame, it assumes the last keyframe played, or in this case the over state. If you make a separate hit state, then the images are still part of the button, just not part of the hit area.

Rev:elderly:

---

<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: [November 4, 2002, 8:18am UTC](https://forum.kirupa.com/t/mouseover-problems/7602/6 "2002-11-04T08:18:38Z")

</div>

Really?

Learn something new everyday 🙂

Thanks rev =)

---

<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: [November 4, 2002, 8:25am UTC](https://forum.kirupa.com/t/mouseover-problems/7602/7 "2002-11-04T08:25:10Z")

</div>

Yup… a button is still a 4 frame MC, so if you put something in frame 1, then don’t put anything in frames 2, 3, and 4, then in the movie it will look like frame 1 through all 4 frames … =)

I hope this helps kgirl…

Rev:elderly:

---

<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: [November 12, 2002, 2:29pm UTC](https://forum.kirupa.com/t/mouseover-problems/7602/8 "2002-11-12T14:29:15Z")

</div>

thanks u 2 🙂

i managed to get it to work using the separate movie clip thingie and editing my OVER button from there =)
