“Be inspired, enjoy your work, keep learning and never forget to play.” — gskinner

Underlined link style in Flash

Posted: September 4th, 2007 | Author: tufao | Filed under: Actionscript2 | 9 Comments »

You want to have that tipical html effect when rolling over a text link showing text underlined? That is one of thouse things that is hard to understand how Marcromedia/Adobe didn't support this from the very beginning.

Sure you can have your text field as html and have your content defined by code with html tags and all, but do you really want to go through all that trouble. Shouldn't that be more simple just using static text?

I came up to a quite simple solution:

Basically styleSheet is created with the underline style which is applied for every object on a MovieClip. Check it out (AS2):

That's it! The underline effect on a link roll over is active for every static or dynamic text field on stage.