# Assign actions to dynamic text?

**URL:** <https://forum.kirupa.com/t/assign-actions-to-dynamic-text/15554>\
**Category:** Uncategorized\
**Created:** [March 15, 2003, 5:58pm UTC](https://forum.kirupa.com/t/assign-actions-to-dynamic-text/15554 "2003-03-15T17:58:34Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![daveg92656](https://avatars.discourse-cdn.com/v4/letter/d/c77e96/32.png) [@daveg92656](https://forum.kirupa.com/u/daveg92656)\
**Post date:** [March 15, 2003, 5:58pm UTC](https://forum.kirupa.com/t/assign-actions-to-dynamic-text/15554/1 "2003-03-15T17:58:34Z")

</div>

Hi, I am using Flash5 to build a site. I have a main page with navigation bar to get around. The word “menu” is sitting on the right of the stage which contains the actions:

on(press) {  
gotoandplay(“expand”)   
}

which opens the nav bar on the bottom of screen. This works fine. However, the text was blurry on my site, so I switched the text from static to dynamic text, which solved the blurriness problem.

BUT, after switching the text, I discovered my "menu’ button is not behaving as before.

Can one assign actions to dynamic text? If not, what do I do to still have legible text? Any other suggestions? Again, the menu bar and other links were working fine, but when switched to dynamic text, none of the navigation works. Help!! thanks, dave. ☹

---

<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:** [March 15, 2003, 8:46pm UTC](https://forum.kirupa.com/t/assign-actions-to-dynamic-text/15554/2 "2003-03-15T20:46:08Z")

</div>

This is probably the easiet way to get around that since you can’t directly apply actionscripting to dynamic text.

First create your dynamic text, the on top of it, create a “dummy” button and apply the actionscripts to it.

Next turn down the alpha of the dummy button to 0 so that only the dynamic text shows.

So now when you mouse over the dynamic text, it will also have the hidden dummy button for it’s link.

Good luck. =)

---

<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:** [March 16, 2003, 7:24am UTC](https://forum.kirupa.com/t/assign-actions-to-dynamic-text/15554/3 "2003-03-16T07:24:18Z")

</div>

Hi Electron,  
thanks for the reply, I was thinking of that. Basically, just use ‘invisible’ butons and I will be ok, huh? thanks, dave.

---

<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:** [March 16, 2003, 12:58pm UTC](https://forum.kirupa.com/t/assign-actions-to-dynamic-text/15554/4 "2003-03-16T12:58:30Z")

</div>

genreally, invisible buttons are created by only having content in the HIT frame of the button. This improves performance a little and keeps the button from being visible in low color monitors (which can happen with 0% alphaed objects).

I often make a square invisible button which I can then resize and re-use whereever I need 🙂

---

<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:** [March 16, 2003, 4:28pm UTC](https://forum.kirupa.com/t/assign-actions-to-dynamic-text/15554/5 "2003-03-16T16:28:24Z")

</div>

Hi,  
sounds good, thanks for the advice… dave.
