# Text appears before on(rollover)

**URL:** <https://forum.kirupa.com/t/text-appears-before-on-rollover/62181>\
**Category:** flash\
**Created:** [August 25, 2004, 4:04pm UTC](https://forum.kirupa.com/t/text-appears-before-on-rollover/62181 "2004-08-25T16:04:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![johannes](https://avatars.discourse-cdn.com/v4/letter/j/7ba0ec/32.png) [@johannes](https://forum.kirupa.com/u/johannes)\
**Post date:** [August 25, 2004, 4:04pm UTC](https://forum.kirupa.com/t/text-appears-before-on-rollover/62181/1 "2004-08-25T16:04:22Z")

</div>

[font=verdana,arial,helvetica][size=1] [/size][/font]Dear all,  
[font=verdana, arial, helvetica][size=2] I’m using the following code (cheers Prophet!) to have a button that can toggle a set text over an input box:

on(rollover){  
captionMC.\_visible = 1  
}  
on(rollout){  
captionMC.\_visible = 0  
}

I want users to be able to see the set text when **they** decide to press the button. Why does it appear before I press the button?

Ideas anyone? Take a look at what I’ve done.[/size][/font]

---

<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 25, 2004, 4:41pm UTC](https://forum.kirupa.com/t/text-appears-before-on-rollover/62181/2 "2004-08-25T16:41:04Z")

</div>

> [@johannes](#):
>
> [font=verdana,arial,helvetica][size=1] [/size][/font]Dear all,  
> [font=verdana, arial, helvetica][size=2] I’m using the following code (cheers Prophet!) to have a button that can toggle a set text over an input box:
> 
> on(rollover){  
> captionMC.\_visible = 1  
> }  
> on(rollout){  
> captionMC.\_visible = 0  
> }
> 
> I want users to be able to see the set text when **they** decide to press the button. Why does it appear before I press the button?
> 
> Ideas anyone? Take a look at what I’ve done.[/size][/font]

on the main timeline  
captionMC.\_visible = false;

nothing to do with this but-

you should also edit your button (notice how it flickers as you go over the text), go to the hit frame and draw a square, it won`t be visible later.

---

<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 25, 2004, 5:15pm UTC](https://forum.kirupa.com/t/text-appears-before-on-rollover/62181/3 "2004-08-25T17:15:12Z")

</div>

Stringy,

Thanks a bunch m8, really appreciate it!

You seem to know your stuff, any ideas about this [Thread](http://www.kirupaforum.com/forums/showthread.php?t=67708)  
could really use a nudge in the right direction there I think…

Thanks again.

J
