EDIT: for the fla files:
Please login to my http://www.250free.com account and download the files yourself.
account: dlink
pw: helpplease
hotlinking isn’t allowed on the free accounts with large files.
I’ve uploaded flash files/swfs and they’re in the same folder. I can’t get the external txt file to display in the textarea component correctly. When I click the button to load the text the text doesn’t show up from the file and instead says “undefined” (without the quotes).
How do I fix this so that the text from the external txt file loads correctly?
I have 3 layers…textarea, button, and actions. This is the AS on the actions layer:
_global.styles.TextArea.setStyle(“backgroundColor”,“false”);
setStyle(“borderStyle”, “none”);
aboutmestyle = new TextField.StyleSheet();
aboutmestyle.load(“http://dlink.250free.com/css.txt”);
aboutme.styleSheet = aboutmecontentstyle;
//Specify mytextbox to read text as HTML
aboutme.html = true;
// Specify mytextbox to wrap text
aboutme.wordWrap = true;
// Specify mytextbox to have a scrollbar
aboutme.multiline = true;
read1.onRelease = function() {
loadtextContent = new LoadVars();
// Load the text file into my movie
loadtextContent.load(“http://dlink.250free.com/aboutmecontent.txt”);
// Start a new function to load the text file
loadtextContent.onLoad = function(success) {
if (success) {
// loads the file into mytextbox
aboutme.text = this.aboutmecontent;
}
};
};
Thanks for any help.