Answered
Loading text dynamically...
This is driving me nuts. I'm trying to load an html text file
into a dynamic text box labeled 'loadedInfo.' 'loadedInfo' is in a
movieclip instance called 'text_field' - however I can't seem to
get it to work or even pull up the error that I wrote into the
action script (even though I have a similar script working on
another site I did).
Here's my actionscript to pull that variable into the dynamic text box (it's in the main timeline):
myLV.load("resume.txt");
//Load Vars
var myLV:LoadVars = new LoadVars();
myLV.onLoad = function(success) {
if (success) {
text_field.loadedInfo.htmlText = myLV.info;
} else {
text_field.loadedInfo.text = "There has been an error loading the requested information. Please contact the webmaster and report your error.";
}
}
If you want to see the swf file it's here:
http://www.midnight007.com/pizza/layer_100resume.swf
And, if you want to see the fla file it's here:
http://www.midnight007.com/pizza/layer_100resume.fla
Here's my actionscript to pull that variable into the dynamic text box (it's in the main timeline):
myLV.load("resume.txt");
//Load Vars
var myLV:LoadVars = new LoadVars();
myLV.onLoad = function(success) {
if (success) {
text_field.loadedInfo.htmlText = myLV.info;
} else {
text_field.loadedInfo.text = "There has been an error loading the requested information. Please contact the webmaster and report your error.";
}
}
If you want to see the swf file it's here:
http://www.midnight007.com/pizza/layer_100resume.swf
And, if you want to see the fla file it's here:
http://www.midnight007.com/pizza/layer_100resume.fla
