Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error when testing Dynamic Text Field

Status
Not open for further replies.

AudreyLucy

Technical User
Jul 19, 2002
42
US

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
 
Yes, you have to have a plain text (.txt) file in order to load in variables to the movie. Maybe you can save your file with that extention as an option in Text Edit. If not try saving the file and then renaming it with a .txt extention. Slainte

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top