AudreyLucy
Technical User
I'm new at ActionScript and this may be a "no brainer" to most, but its rocket science to me...
I have been trying to learn how to load text dynamically into a text field. But I get this Error each time I test the movie:
Not Loaded
Error opening URL "file:///File%20Server%20HD/current%20work/Aesthetics/2002cd%20project/june2002/tests/scrolling%20text%20documents/text1"
The Text file and the FLA are in the same directory. So I'm not sure why I'm getting this message. One question I have is; does Flash recognize text files saved in Text Edit (.rtf files)? .txt files are what I see in tutorials and in forums when the text file is refered to. But I do not have this program on my computer. Is it necessary to use Simple Text instead of Text Edit?
Incase this is not the problem...this is the action script I added to the first frame of the movie:
loadVarsText = new loadVars();
loadVarsText.load("text1"
loadVarsText.onLoad = function(success) {
if (success) {
trace("done loading"
scroller.text = this.var1;
} else {
trace("not loaded"
}
};
The instance name on the field is "scroller". And I've selected "multiline" in the properties box
Thanks