# Text appearing over Txt Box?

**URL:** <https://forum.kirupa.com/t/text-appearing-over-txt-box/120440>\
**Category:** Uncategorized\
**Created:** [August 24, 2004, 10:40am UTC](https://forum.kirupa.com/t/text-appearing-over-txt-box/120440 "2004-08-24T10:40:38Z")\
**Posts on this page:** 8\
**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 24, 2004, 10:40am UTC](https://forum.kirupa.com/t/text-appearing-over-txt-box/120440/1 "2004-08-24T10:40:38Z")

</div>

Dear all,

How can I have a button which users can press to have text appearing over an Input textbox? (sort of like a _This is what you supposed to be writing here…_) I’ve tried the Hover Caption Tutorial, but it does not seem to work for me…

Attachment shows what I am \*trying to do.

Cheers guys  
\*

---

<div class="post-metadata">

**Author:** ![SeaPink](https://avatars.discourse-cdn.com/v4/letter/s/49beb7/32.png) [@SeaPink](https://forum.kirupa.com/u/SeaPink)\
**Post date:** [August 24, 2004, 11:21am UTC](https://forum.kirupa.com/t/text-appearing-over-txt-box/120440/2 "2004-08-24T11:21:47Z")

</div>

write this action on the button  
on (release) {  
ideas\_var = “blah…blah…blah!!!”;  
}  
where ‘ideas\_var’ is the variable name of the input box. You can set this varible name using the property inspector.  
all the best!!!

---

<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 24, 2004, 11:28am UTC](https://forum.kirupa.com/t/text-appearing-over-txt-box/120440/3 "2004-08-24T11:28:39Z")

</div>

Thanks SeaPink,

sorry to be a pain about this but that doesnt seem to work. I placed the AS on the button, named the input box ideas. When I test the movie, there is nothing appearing over the box. Don’t I need to create some sort of a hovering caption type thingy?

Ideas?

---

<div class="post-metadata">

**Author:** ![Prophet](https://avatars.discourse-cdn.com/v4/letter/p/838e76/32.png) [@Prophet](https://forum.kirupa.com/u/Prophet)\
**Post date:** [August 24, 2004, 5:38pm UTC](https://forum.kirupa.com/t/text-appearing-over-txt-box/120440/4 "2004-08-24T17:38:33Z")

</div>

SeaPink is thinking like me 😉  
his method should set the text in the input box to whatever you want… but doesnt pop up any caption or anything.  
if you want to do what is the easiest solution, do exactly as you have done following his instructions so far… but actually do what he says this time! 😉 lol  
u named your input text box ideas when you should go to the bottom right hand corner of your property inspector (with your text box selected) and there should be a variable box. in this, place _ideas\_var_.

otherwise im afraid you will have to attach an fla for us to try to figure out whats wrong with your caption 😉

Prophet.

---

<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 24, 2004, 6:08pm UTC](https://forum.kirupa.com/t/text-appearing-over-txt-box/120440/5 "2004-08-24T18:08:44Z")

</div>

Prophet,

Hmmm…I’m being a bit of a numpty today I am afraid…it worked! But it “stays”, I’d like it to disappear when I’m no longer pressing the button, if you see what I mean?

Thanks for persisting with my query, I really appreciate it!

Gab  
[font=verdana, arial, helvetica][size=2]Thanks,

I’m not making myslef very clear, I basically what a button which I can use to toggle text on /off.

Any ideas?

Cheers.

P.s Take a look at this page [Diagram](http://www.schoolhistory.co.uk/lessons/crimepunishment/turningpoints.shtml) and click **Hover here for ideas** , that’s what I’d like to do.[/size][/font]

---

<div class="post-metadata">

**Author:** ![Prophet](https://avatars.discourse-cdn.com/v4/letter/p/838e76/32.png) [@Prophet](https://forum.kirupa.com/u/Prophet)\
**Post date:** [August 25, 2004, 12:03am UTC](https://forum.kirupa.com/t/text-appearing-over-txt-box/120440/6 "2004-08-25T00:03:18Z")

</div>

2 ways really, 1 have an mc with whatever you want on it and toggle its visibility on/off, ie.

```auto
on(press OR rollOver){
captionMC._visible = 1
}
on(release OR rollOut){
captionMC._visible = 0
}

```

or just reset the variable, either to what the user already had in there, or just to blank. its up2u, having seen what theyv done i personally would use the mc method… its cleaner 😉

Prophet.

---

<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, 6:52am UTC](https://forum.kirupa.com/t/text-appearing-over-txt-box/120440/7 "2004-08-25T06:52:06Z")

</div>

Prophet,

You are my flero! It works like a charm. Just one tiny thing more…my caption start off being visable even before I press/rollover the button, “it’s already there!”

Also, do you know how I make a button \*\*bigger \*\*(the area where a press rather than the image size) Take a look in my Fla and you’ll see what I mean.

Thanks a bunch m8, your help is invaluable!

J

---

<div class="post-metadata">

**Author:** ![Prophet](https://avatars.discourse-cdn.com/v4/letter/p/838e76/32.png) [@Prophet](https://forum.kirupa.com/u/Prophet)\
**Post date:** [August 25, 2004, 6:07pm UTC](https://forum.kirupa.com/t/text-appearing-over-txt-box/120440/8 "2004-08-25T18:07:07Z")

</div>

frame 1 have this AS:

```auto
captionMC._visible = 0

```

on your button, dbl click it, make a keyframe unde _HIT_ draw a rectangle or whatever over it - this is the “active area of the button” so to speak 😉 this should help u! 🙂

no probs, its my pleasure!

Prophet.
