# Problem with Caption Tutorial

**URL:** <https://forum.kirupa.com/t/problem-with-caption-tutorial/4720>\
**Category:** flash\
**Created:** [August 17, 2002, 1:37pm UTC](https://forum.kirupa.com/t/problem-with-caption-tutorial/4720 "2002-08-17T13:37:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kanzaki](https://avatars.discourse-cdn.com/v4/letter/k/ea5d25/32.png) [@kanzaki](https://forum.kirupa.com/u/kanzaki)\
**Post date:** [August 17, 2002, 1:37pm UTC](https://forum.kirupa.com/t/problem-with-caption-tutorial/4720/1 "2002-08-17T13:37:06Z")

</div>

hey man! that tutorial was really cool!!  
except i have this small problem ☹

i have this movie clip on the main timeline and inside that i have a button.

when i try to use the caption script the caption box doesnt dissapear when i click on that button… until you put the mouse on the other buttons in the scene…

its kinda hard to explain  
so i’ve added the flash file + swf file.

[http://www.ohnishi.net/flash/](http://www.ohnishi.net/flash/)

Can you please help me :(!

thanks heapz

---

<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 17, 2002, 4:28pm UTC](https://forum.kirupa.com/t/problem-with-caption-tutorial/4720/2 "2002-08-17T16:28:21Z")

</div>

Try adding

on (press) {  
\_root.x = 0;  
\_root.caption.words = " ";  
}

to the button. I am guessing that this will get rid of your caption after you click it. Although untested, it seems like it should work. I think the problem with your button is that when you click it, the button disappears, so theres nothing to rollOut of, so the text stays there, where is, with the on(press) code it should remove the captions when you click, instead of rollOut.

Hope this helps!

---

<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 18, 2002, 2:05am UTC](https://forum.kirupa.com/t/problem-with-caption-tutorial/4720/3 "2002-08-18T02:05:27Z")

</div>

hey it worked!!

thanks alot lostinbeta! 🙂 it helped me heaps!

---

<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 18, 2002, 2:09am UTC](https://forum.kirupa.com/t/problem-with-caption-tutorial/4720/4 "2002-08-18T02:09:07Z")

</div>

haha, rockin’

Glad I could help you out kanzaki:) !
