# Rollover btn and on rollover state

**URL:** https://forum.kirupa.com/t/rollover-btn-and-on-rollover-state/118395
**Category:** Uncategorized
**Created:** [August 5, 2004, 2:57am UTC](https://forum.kirupa.com/t/rollover-btn-and-on-rollover-state/118395 "2004-08-05T02:57:43Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![kirstenosborn](https://avatars.discourse-cdn.com/v4/letter/k/5f8ce5/32.png) [@kirstenosborn](https://forum.kirupa.com/u/kirstenosborn)
#### Post date: [August 5, 2004, 2:57am UTC](https://forum.kirupa.com/t/rollover-btn-and-on-rollover-state/118395/1 "2004-08-05T02:57:43Z")

</div>

Hello. I am trying to make a button go to another state when you rollover it. The functionality is working but the button is flashing when you rollover. It is only being “read” when you hit the letters. Do I need to add an invisable button behind? If so, how do I do this?

Also, I am using a font I downloaded from a site you guys suggested (thanks!), but I was wondering if it is static text will it be read on others computers when they dont have this font? If I embed the font wont it make the file size really large??

Any help would be great!

I attached the fla and swf

Thanks!! =)

---

<div class="post-metadata">

### Author: ![bwh2](https://avatars.discourse-cdn.com/v4/letter/b/8c91f0/32.png) [@bwh2](https://forum.kirupa.com/u/bwh2)
#### Post date: [August 5, 2004, 3:07am UTC](https://forum.kirupa.com/t/rollover-btn-and-on-rollover-state/118395/2 "2004-08-05T03:07:37Z")

</div>

i didn’t look at your fla, but your button’s probably flashing b/c it’s just going over the text as you suspected. so inside your button, make another layer and in it, create a rectangular box and convert it to an mc. then set that mc’s alpha=0. it will then be part of the button, but not visible.

static text will be visible regardless of what font it’s in. embedding the font should not create issues with file size b/c most fonts have small file sizes to begin with.

---

<div class="post-metadata">

### Author: ![kirstenosborn](https://avatars.discourse-cdn.com/v4/letter/k/5f8ce5/32.png) [@kirstenosborn](https://forum.kirupa.com/u/kirstenosborn)
#### Post date: [August 5, 2004, 3:28am UTC](https://forum.kirupa.com/t/rollover-btn-and-on-rollover-state/118395/3 "2004-08-05T03:28:49Z")

</div>

Actually, my button is really a mc, so Im not sure where to place the invisible button at the top level or inside the mc  
thanks again…

---

<div class="post-metadata">

### Author: ![bwh2](https://avatars.discourse-cdn.com/v4/letter/b/8c91f0/32.png) [@bwh2](https://forum.kirupa.com/u/bwh2)
#### Post date: [August 5, 2004, 3:44am UTC](https://forum.kirupa.com/t/rollover-btn-and-on-rollover-state/118395/4 "2004-08-05T03:44:10Z")

</div>

i’d place it within the mc.

---

<div class="post-metadata">

### Author: ![kirstenosborn](https://avatars.discourse-cdn.com/v4/letter/k/5f8ce5/32.png) [@kirstenosborn](https://forum.kirupa.com/u/kirstenosborn)
#### Post date: [August 5, 2004, 4:06am UTC](https://forum.kirupa.com/t/rollover-btn-and-on-rollover-state/118395/5 "2004-08-05T04:06:10Z")

</div>

Here is the code I have on the button currently. The button had dynamic text in it before, but I changed the dynamic text to static text and now it does not seem to be working so well. Do you have any ideas? I did drop in a movie clip into the file underneath the mc, but nothing happend, which means im not targeting the path correctly. The cursor would just sit on the text and nothing would happen. I know I need to place a button and take this code and place it on the button instead of the text, but I dont know how to redirect this action below to affect the text. ugh.

on (rollOver) {  
this.gotoAndStop(“rollover”);  
}  
on (press) {  
//this is sub2  
this.activated = 1;  
this.gotoAndStop(“clicked”);  
\_root.contents.loadMovie(“peopleTri.swf”);

```
//turns off other buttons
_parent.sub1.activated = 0;
_parent.sub1.changeColour();
_parent.sub3.activated = 0;
_parent.sub3.changeColour();

//closes other rollout
_root.aboutNav_mc.people_mc.gotoAndStop(1);

```

}

on (rollOut) {  
this.changeColour();  
}

---

<div class="post-metadata">

### Author: ![bwh2](https://avatars.discourse-cdn.com/v4/letter/b/8c91f0/32.png) [@bwh2](https://forum.kirupa.com/u/bwh2)
#### Post date: [August 5, 2004, 4:20am UTC](https://forum.kirupa.com/t/rollover-btn-and-on-rollover-state/118395/6 "2004-08-05T04:20:22Z")

</div>

ok. i looked at your fla and added in an invisible mc to fix things. well, it’s not currently invisible, but you can obviously change it to invisible. it’s inside your company1 mc. should be easy to see.

---

<div class="post-metadata">

### Author: ![kirstenosborn](https://avatars.discourse-cdn.com/v4/letter/k/5f8ce5/32.png) [@kirstenosborn](https://forum.kirupa.com/u/kirstenosborn)
#### Post date: [August 5, 2004, 4:35am UTC](https://forum.kirupa.com/t/rollover-btn-and-on-rollover-state/118395/7 "2004-08-05T04:35:28Z")

</div>

thank you for your help!

one other quick question…when i try to convert the graphic to an invisible buttion it doesnt read it. do you know why this is?

i guess i can cheat by making the fill match the background color?

---

<div class="post-metadata">

### Author: ![bwh2](https://avatars.discourse-cdn.com/v4/letter/b/8c91f0/32.png) [@bwh2](https://forum.kirupa.com/u/bwh2)
#### Post date: [August 5, 2004, 4:54am UTC](https://forum.kirupa.com/t/rollover-btn-and-on-rollover-state/118395/8 "2004-08-05T04:54:45Z")

</div>

> [@kirstenosborn](#):
>
> when i try to convert the graphic to an invisible buttion it doesnt read it.

i’m not really sure what you mean by this, but my guess is that you’re forgetting to do it in all 3 keyframes within that mc.
