PDA

View Full Version : Loading text files in swf


Flavio Pacini
02-09-2004, 04:10 PM
Hello,
I am trying to load text into a .swf file with the following code:
loadVariablesNum("textfile.txt", post);
It works if the .swf is level 0; it does not if the text is loaded in a .swf file which is loaded in an additional level, such as:
loadMovieNum("new-level-with-text.swf", 10);
In this case, the new-level-with-text.swf (loaded as an additional level) will show over the basic .swf file, but the text will not be loaded.
Thanks for your help.
Flavio

Mortimer Jazz
02-09-2004, 05:45 PM
The correct syntax is: loadVariablesNum("url" ,level [, variables])

You can't specify 'post' for the level - I expect if you provide an invalid argument like this Flash will probably just default to trying to load the variables into level0.

Try: loadVariablesNum("textfile.txt", 10);