PDA

View Full Version : text files and hyperlinks



jimw00d
July 5th, 2003, 04:09 AM
I have been told that if I import text from an external .txt file and if I want the text to be a hyperlink, I should use:

This is a cool site

in the text file.

I am using

loadVariables ("my.txt",_root);

to get the text into a dynamic text field.

The method of defining a hyperlink is not working.

Also is there a way to have the link underlined by adding to the text file. I could do this internally in flash but I want to have the flexibility of the external text file.

lostinbeta
July 5th, 2003, 04:13 AM
TextFieldInstanceName.html = true
TextFieldInstanceName.htmlText = variable


:)

That will allow you to use limited HTML font formatting tags. You can use the A HREF tag, I am not sure if that underlines it, if not, use the U tag :)

sdrawkcaB
July 6th, 2003, 03:53 AM
^Will that make it so you can use fonts that are only on your computer?

lostinbeta
July 6th, 2003, 03:59 AM
No, you will need to embed the font outline of the textbox to do that. (right click on textbox, open properties, press character button)