# Retractable text box?

**URL:** <https://forum.kirupa.com/t/retractable-text-box/61639>\
**Category:** flash\
**Created:** [August 20, 2004, 7:01am UTC](https://forum.kirupa.com/t/retractable-text-box/61639 "2004-08-20T07:01:31Z")\
**Posts on this page:** 4\
**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 20, 2004, 7:01am UTC](https://forum.kirupa.com/t/retractable-text-box/61639/1 "2004-08-20T07:01:31Z")

</div>

Dear all,

Does anybody know how I can create a textbox that slides out from an image or a piece of text when the cursor moves over it? Alternatively, same thing but on mouse click?

Thanks a bunch!

J

---

<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 20, 2004, 9:01am UTC](https://forum.kirupa.com/t/retractable-text-box/61639/2 "2004-08-20T09:01:25Z")

</div>

put the text box inside the movie clip. then on the movie clip add a code like:  
on (mouse over, press){  
yourTXT.\_x = YourDesiredPositionInPixels;  
}  
If you want the text box to slide and not jump to the new position you will need to add motion script to it by putting it into a seperate MC… But if you only a newbie, just make a movie clip for the text field and inside that movie put the text field and use motion tweening to move it. then add a stop(); to the first frame.  
put that new movie clip on you desired position on the stage then on the button write:  
on (mouse over, press){  
YourNewMovieClip.play();  
}

---

<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 20, 2004, 1:44pm UTC](https://forum.kirupa.com/t/retractable-text-box/61639/3 "2004-08-20T13:44:29Z")

</div>

Cheers Algreco!

I would really like to learn how to do the first thing though…know of any tutorials?

---

<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 20, 2004, 3:03pm UTC](https://forum.kirupa.com/t/retractable-text-box/61639/4 "2004-08-20T15:03:03Z")

</div>

just google it. motion actionscript.  
You will find what u need I am sure.  
Good luck
