# Making text a button with actionscript

**URL:** https://forum.kirupa.com/t/making-text-a-button-with-actionscript/6347
**Category:** flash
**Created:** [October 4, 2002, 8:45pm UTC](https://forum.kirupa.com/t/making-text-a-button-with-actionscript/6347 "2002-10-04T20:45:24Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![vip3r](https://avatars.discourse-cdn.com/v4/letter/v/c2a13f/32.png) [@vip3r](https://forum.kirupa.com/u/vip3r)
#### Post date: [October 4, 2002, 8:45pm UTC](https://forum.kirupa.com/t/making-text-a-button-with-actionscript/6347/1 "2002-10-04T20:45:24Z")

</div>

Ok, i need to make some text a button in actionscript. I want the text to fade from one color to the other when I mouse over it, and then when i click on it, it does something. I can’t just make some text and make it into a button, because it is dynamic (like if the person typed “go” then the button text would be “go”) i’m thinking around the lines of makinga button with a fade from black to purple, then masking it with some text. any ideas how this would work?

thanx in advance,  
vip3r

---

<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: [October 5, 2002, 2:25am UTC](https://forum.kirupa.com/t/making-text-a-button-with-actionscript/6347/2 "2002-10-05T02:25:37Z")

</div>

[size=1]just out of curiosity, why would you want to do it in  
actionscript rather than with the flash interface?

it can easily be done with a box, symbol convert, and placement  
of a movie of the text fade in the over position and voila!

_scratch head_  
not sure other than you just WANT to do it that way…

/unflux[/size]  
:cyclops:

---

<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: [October 5, 2002, 9:14am UTC](https://forum.kirupa.com/t/making-text-a-button-with-actionscript/6347/3 "2002-10-05T09:14:19Z")

</div>

That’s difficult to do too…

---

<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: [October 6, 2002, 2:37am UTC](https://forum.kirupa.com/t/making-text-a-button-with-actionscript/6347/4 "2002-10-06T02:37:42Z")

</div>

[size=1]how so? it can be done in less than 5 min…at least for  
me! 😛

/unflux[/size]  
:goatee:

---

<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: [October 6, 2002, 7:35am UTC](https://forum.kirupa.com/t/making-text-a-button-with-actionscript/6347/5 "2002-10-06T07:35:31Z")

</div>

Scripted?

---

<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: [October 6, 2002, 1:23pm UTC](https://forum.kirupa.com/t/making-text-a-button-with-actionscript/6347/6 "2002-10-06T13:23:22Z")

</div>

perhaps I am missing something, but why not put your dynamic text inside of a movie clip…then you can click on it all day.
