all groups > flash actionscript > august 2005 >
You're in the

flash actionscript

group:

HTML text not displaying in TextArea component


HTML text not displaying in TextArea component c-fig
8/12/2005 9:29:42 PM
flash actionscript:
Hey guys, working on a project where an XML file is being read into a Flash
movie, basically its a store directory with descriptions for each store. I can
format an HTML link in the XML doc so that the text appearing in the TextArea
is clickable and linked to a URL, but I can't apply any sort of HTML or CSS
formatting to the link to visually designate it as a link.

I've set html to true in the Parameters of the Component Inspector but I'm
guessing maybe there's another setting for this I'm missing that's keeping the
HTML formatting from being visible? Any help is greatly appreciated, thanks.

chris
Re: HTML text not displaying in TextArea component Methark
8/13/2005 7:57:35 AM
Are ya using the code?:
myTextArea.text = "HTML content"; (used for text Area component)

or

myTextArea.htmlText = "HTML content"; (used for dinamic text)

Regards...
Re: HTML text not displaying in TextArea component c-fig
8/13/2005 9:39:52 PM
I'm not but i'll check that out. I'm assuming myTextArea is the instance name and this is just going on the root timline?

Thanks for the info.

Re: HTML text not displaying in TextArea component Methark
8/14/2005 10:35:17 AM
Yes...that?s right: myTextArea is the instance name.

Re: HTML text not displaying in TextArea component c-fig
8/15/2005 12:00:00 AM
ok, trying this and it's not quite happening but i think i'm not quite clear on
how it's working. What exactly are you putting inside the quotes where "HTML
content" goes? because all the HTML is being loaded via XML so i don't have any
actual content to put there. Thanks for all the help so far.

chris
Re: HTML text not displaying in TextArea component c-fig
8/16/2005 1:44:53 PM
Any thoughts guys? Thanks.

Re: HTML text not displaying in TextArea component NO[at]SPAM ndrewEmba$$y
9/7/2005 12:52:48 AM
Hey Chris- You should put whatever variable is storing your html content-

If it's a help- here's how a script I wrote with a txt file works:


getcDescription = new LoadVars();
getcDescription.load("data/cDescription.txt")
getcDescription.onLoad = function (success) {
if (success) {
trace("cdescription Loaded")
/*myTextArea.htmlText = "HTML content"; is represented below - my "html
content" is "this.cDescription" */
descriptionBox.htmlText = this.cDescription;
} else {
trace("not loaded")
}
}
AddThis Social Bookmark Button