Assign actions to dynamic text?

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. :frowning:

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. =)

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

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 :slight_smile:

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