Hi All,
I am working on a project now where I need to load the lyrics of several songs. I have the html version of the lyrics. I am wondering the best way to load the lyrics.
- Load from text file reading the html
- Load from text file with just normal text
- Read from an array inside my main movie
I was pursuing reading from the text file, but have not had any luck. Is there a special format you have to prepare the HTML so that the HTML is read properly into Flash (", ', etc)?
My code looks similar to this:
on (release) {
loadText = new loadVars();
loadText.load("TEXT1.txt");
loadText.onLoad = function(success) {
if (success) {
// trace(success);
newsBox.html = true;
newsBox.htmlText = this.myNews;
}
};
}
Here is what the HTML looks like:
<p><font face=“Arial, Helvetica, sans-serif” size=“2”>(music & lyrics by
Tara Leigh Cobble & Oliver Lollis) </font></p>
<p><font face=“Arial, Helvetica, sans-serif” size=“2”>Verse 1: <br>
Well, I was never less than perfectly happy without you. <br>
And I was never more inclined to stay on my own. <br>
But I guess the best surprises come when you’re not looking. <br>
'Cause I was dying, but I never would’ve known. <br>
See, there’s a problem with this house that I’ve constructed