# Revisted underline text

**URL:** <https://forum.kirupa.com/t/revisted-underline-text/171555>\
**Category:** flash\
**Created:** [December 6, 2005, 2:59pm UTC](https://forum.kirupa.com/t/revisted-underline-text/171555 "2005-12-06T14:59:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Multi\_Task](https://avatars.discourse-cdn.com/v4/letter/m/c6cbf5/32.png) [@Multi\_Task](https://forum.kirupa.com/u/Multi_Task)\
**Post date:** [December 6, 2005, 2:59pm UTC](https://forum.kirupa.com/t/revisted-underline-text/171555/1 "2005-12-06T14:59:24Z")

</div>

**Underlined Text On (rollOver)**  
Is there an action script to do on (rollover) underline text? It would be on a button that would also, on (release) gotoAndPlay a frame. I know you can have a movie with AS like this:

on (rollOver) {  
myformat = new TextFormat();  
myformat.color = 0xffffff;  
myformat.underline = true;  
textfeild.setTextFormat(myformat);  
}  
on (rollOut) {  
myformat = new TextFormat();  
myformat.color = 0xffffff;  
myformat.underline = false;  
textfeild.setTextFormat(myformat);  
}

But when I add the on (release) to the movie it doesnt advance the timeline on (release). And when I change the file to a button instead of a movie clip it doesnt do the underline on (rollOver).  
Does anyone have any easy advice?  
Thanks
