–copy and paste from an old project i did—
[AS]
loadUpdateText = new loadVars();
loadUpdateText.load(“updates.txt”);
loadUpdateText.onLoad = function() {
updates.html = true;
updates.wordWrap = true;
updates.htmlText = this.updateText;
};
[/AS]
I am trying to do exactly what you have done. I did the dynamic scroller tut, and modified the code from kirupa.txt to update.txt, and changed the kirupatext= to updateText. I tried using your code from above, but it still isn’t working. I have my .swf & .fla files in the same folder as my .txt. I’m not to sure what the problem is? I checked the instance name, and I just can’t get it. I am on a Mac, so I dunno if that is the problem. Thanks for any help or ideas! Cheers!
[AS]loadText = new loadVars();
loadText.load(“textfile.txt”);
loadText.onLoad = function(OK) {
if (OK) {
myText.html = true;
myText.htmlText = this.text;
}
};[/AS]textfile.txt is your txt file; text is the variable inside your txt file; myText is the instance name of your textfield;
if your textfield is inside a movie clip, replace the last 2 lines for:
[AS]movieClip.myText.html = true;
movieClip.myText.htmlText = this.text;[/AS]Where movieClip is the instance name of the movie clip with the textfield inside
jebas, the tut looked so simple! lol, i uploaded my zip, if you want to have a look at it, otherwise i don’t know whats going on. mind u i am still a newbie. thanks for helping though! :thumb:
ahhh found a new problem, 2 actually. the text runs off and dosen’t go down to the next line. and even though there is more text below, the scroller dosen’t scroll up or down? any suggestions?
I know the solution to the first problem - in your .fla select the textbox and in the properties panel, you should see a dropdown menu that currently says “Single Line”. Change that to “Multiline”. The text should now go onto the next line(s) accordingly.