Groups | Blog | Home
all groups > flash actionscript > june 2005 >

flash actionscript : Parsing strings with markup into html text fields


bobcat777
6/27/2005 11:54:44 PM
I have create a project in which I define text content as strings stored in
variables defined on the root (rather than importing from any external source
which is waht I would normally do). It's suitable for this project to keep
everything contained within the swf. The problem I have run into is that I have
links in my text which, when dynamically placed into html enabled text fields
should show up as links. I have tried a lot of different ways to write the
string, using asci for the html markup elements, or concatenating in various
ways. Nothing works so far. Any ideas?
Rothrock
6/28/2005 12:22:20 AM
Since you haven't given us any code it is hard to tell what is wrong. This works.

myVar = "This is <a href='http://www.saffronthread.com'>a link.</a>";
bobcat777
6/28/2005 1:37:13 AM
AddThis Social Bookmark Button