Dynamic text wont display html no matter what I try

loadText = new LoadVars();
loadText.load(“home.txt”);
loadText.html = true;
loadText.onLoad = function() {
loadedNews.htmlText = this.news;
loadedUpdates.htmlText = this.updates;
loadedMedia.htmlText = this.media;
};

I for the live of me cant get this to display html!
What am I doing wrong. Thanks for the help.
www.genshiro.com/lina/lina.html

You can see what it shows here. No both no color, and no BR. Just displays the text the way its spaced in the txt file.


loadText = new LoadVars();
loadText.load("your_txt.txt");
loadText.onLoad = function(success) {
	if (success) {
		// trace(success);
		textBox.html = true;
		textBox.htmlText = this.myNews;
	}
}; 

In your dynamic text box properties, do you have ‘render text as html’ selected? I use similar code to yours and it always works fine. Hope you get it sorted.

Nice site btw :slight_smile:

loadText = new LoadVars();
loadText.load(“home.txt”);
loadText.onLoad = function(success) {
if (success) {
// trace(success);
loadedNews.html = true;
loadedNews.htmlText = this.news;
loadedUpdates.html = true;
loadedUpdates.htmlText = this.updates;
loadedMedia.html = true;
loadedMedia.htmlText = this.media
}
};

[quote]

With the text

[quote]news=<strong>Come to Mama</strong>
Sept 20 - Lina releases new single “Come to Mama”! A soulful, retro, hip track, with a French chorus! The single is

a truly original sound, style, and concept, by a true trendsetter. Along with “Come to Mama”, Lina releases the

anthem of all anthems, “I AM”, a powerful, smooth, uplifting track with a message of self assurance. The two tracks

display the range of the singer/songwriter and pave the way for a great album to come.
New Album
August 15 - Lina just wrapped up production on her sophomoreproject titled"Inner Beauty", her first release on

Hidden Beach recordings, and*the follow up to her critically acclaimed 2001 debut “Stranger On Earth” (Atlantic).

The new album will feature Lina’s signature soulful fusion of RnB, Hip-Hop, Jazz and Swing,*offering up the sure

hits “Leaving You”, “Come to Mama”, “Hope, Wish and Pray” and the blazin’ duet Anthony Hamilton, "Around the

World". Stay tuned for more details!
Newsletter
Sign up for Lina’s newsletter to qualify for free giveaways and stay on top of the latest info! “Sign Up Now”

(button)&updates=This is a test for the update section&media=This is a media test… please work&

I only have bold right now because I tried coding the whole thing with html but it didnt work, so I took it down to something simple. What am I doing wrong…

loadText = new LoadVars();
loadText.load(“home.txt”);
loadText.onLoad = function(success) {
if (success) {
// trace(success);
loadedNews.html = true;
loadedNews.htmlText = this.news;
loadedUpdates.html = true;
loadedUpdates.htmlText = this.updates;
loadedMedia.html = true;
loadedMedia.htmlText = this.media
}
};

With the text

news=<strong>Come to Mama</strong>
Sept 20 - Lina releases new single “Come to Mama”! A soulful, retro, hip track, with a French chorus! The single is

a truly original sound, style, and concept, by a true trendsetter. Along with “Come to Mama”, Lina releases the

anthem of all anthems, “I AM”, a powerful, smooth, uplifting track with a message of self assurance. The two tracks

display the range of the singer/songwriter and pave the way for a great album to come.
New Album
August 15 - Lina just wrapped up production on her sophomoreproject titled"Inner Beauty", her first release on

Hidden Beach recordings, and*the follow up to her critically acclaimed 2001 debut “Stranger On Earth” (Atlantic).

The new album will feature Lina’s signature soulful fusion of RnB, Hip-Hop, Jazz and Swing,*offering up the sure

hits “Leaving You”, “Come to Mama”, “Hope, Wish and Pray” and the blazin’ duet Anthony Hamilton, "Around the

World". Stay tuned for more details!
Newsletter
Sign up for Lina’s newsletter to qualify for free giveaways and stay on top of the latest info! “Sign Up Now”

(button)&updates=This is a test for the update section&media=This is a media test… please work&

I only have bold right now because I tried coding the whole thing with html but it didnt work, so I took it down to something simple. What am I doing wrong…

Try replacing news= with &news= in your text file?

Nope.

Here are the two files involved.