PDA

View Full Version : Underlining Text?


spill
07-25-2003, 11:26 AM
This may sound like a simple question/request, but because I seem to be missing the obvioius (missing underline button for text in MX) can anyone tell me how to underline text without actually drawing a line?

I have hundreds of modules with text that has been manually entered in and now a client would like cetain words underlined. The problem with drawing a line is for some reason the line does not print where it appears in the file??? Weird. Anyhow.

Is there a way to do this via actionscripts? The only constraint I have is the flash file can not call an outside soucre (i.e. txt file, html file etc.)

Can you point me to an example? Tutorial?

Ahhhhhhhh. Help.

sho shinjo
07-25-2003, 11:49 AM
try this: file


the code on the movieclip reads as this:



onClipEvent (load) {
text = "<u>This text is underlined using html tags.</u> However this text is not, but I do not know if you wish to redo all the text in this manner";
}


remember to make the text field dynamic and click the html tag button

spill
07-25-2003, 12:07 PM
Beautiful!!! This is exactly what I was looking for. Is there a way to format the text color? font? weight? etc.

Would one just use simple html tags? <font color=blue>

Thanks in advance.

spill
07-25-2003, 12:14 PM
Question.

Before I get to far ahead of myself. Is there a way to color particular words using the example script you provided?

For example, I would like the underline and text to both be red.

Thanks again.

sho shinjo
07-25-2003, 12:23 PM
onClipEvent (load) {
text = "<font color='#ff0000'><u>This text is underlined using html tags.</u></font> However this text is not, but I do not know if you wish to redo all the text in this manner";
}

spill
07-25-2003, 12:23 PM
Close, but I don't seem to have a cigar yet?

onClipEvent (load) {
text = "<u>This text is underlined using html tags.</u> However <font [color="#CCCCCC"]>this</font> text is not, but I do not know if you wish to redo all the text in this manner";
}

I get the following:

';' expected

spill
07-25-2003, 12:28 PM
This board rocks!!!!!!!!!!!

Thank you all for the help. Much appreciated!

sho shinjo
07-25-2003, 12:31 PM
Originally posted by spill
Close, but I don't seem to have a cigar yet?

onClipEvent (load) {
text = "<u>This text is underlined using html tags.</u> However <font [color="#CCCCCC"]>this</font> text is not, but I do not know if you wish to redo all the text in this manner";
}

I get the following:

';' expected


look at what you wrote:
<font [color="#CCCCCC"]> is wrong it is <font [color='#CCCCCC']>


' not " that should fix it.... best of luck






Originally posted by Sualdam
This technote tells you what codes are supported.

http://www.macromedia.com/support/flash/ts/documents/htmltext.htm

thank-you for the link I forgot about that.... good catch....