Ok here’s a good question for all you flash geeks out there. I’m puting together my portfolio site. In the portfolio section I want to be able to create links to my work in a dynamic text box.
See I’m using a dynamicaly loaded text from a txt file. Is it possible to use HTML in the txt file and have it work once loaded into flash. I want to creat the links to my portfolio work in the txt file itself. Is it possible?
yes its possible:
Have an external text file (I’ll call it “html.txt” for an example)
in the text file I’ve type this:
text=a href="http://www.kirupa.com"Kirupa/a
(enter the appropriate < and > tags)
in a frame in the movie enter the actionscript:
loadVariablesNum (“html.txt”, 1); //loads text file at level 1
make a dynamic text box after the frame where you’ve loaded the text file and call the variable field:
_level1.text //this calls the dynamically loaded text file
Make sure that the properties of the dynamic text box have the html tags toggle turned on.
Since Flash only formats certain font formatting tags, your HTML and BODY tags will not be formatted, but will instead be printed out with the rest of the text.
wow, this forum is always full of such helpfull people!! :beam:
So now it opens in a new window. One more question. Is there a way to have the text show up underlined like a regualr hyperlink? Or should I just underline it in the txt file?