I have followed the tutorial - Displaying Data from an External File by kirupa chinnathambi and have it working well.
The only issue I have at the moment is that when I enter HTML tags into the text file they don’t get parsed and instead remain as plain text. The text box in Flash is set as “Muliple lines” and also has the “Render Text as HTML” enabled.
Any help would be appreciated - here is the following code, etc which I have at present…
Action in Flash:
loadText = new LoadVars();
loadText.load("news_1.txt");
loadText.onLoad = function() {
Headline.text = this.Headline;
Text.text = this.Text;
Image.loadMovie(this.Image);
};
Text File content from news_1.txt:
Headline=Welcome to the Site&Text=Here is our <b>brand new site</b>! Please look about or <a href="http://www.yoursite.com" target="_blank">READ MORE</a>&Image=newspic.jpg
Result at present shows…
Welcome to the Site
Here is our <b>brand new site</b>! Please look about or <a href="http://www.yoursite.com" target="_blank">READ MORE</a>