Hi,
It is pretty easy to do with buttons. You can use a LoadVars object to hold the data then populate that object with whatever text file you choose....
Code:
myVars = new LoadVars();
myVars.onLoad = function(success) {
if (!Success) {
trace("Failed to load");
} else {
myTextfield.text = myVars.myText;
}
}
myVars.load("http://somesite.com/somefile.txt");
//Load a different text file
myButton.onRelease=function(){
myVars.load("http://somesite.com/someOtherFile.txt");
}
I'm not sure how you would use a text link in an HTML enabled textfield to call the load method. I dont think a getURL method will allow that, but I have not tried it.
hope it helps
NTD
A mind once stretched by a new idea never regains its original dimensions.
- Oliver Wendell Holmes
Bookmarks