sendAndLoad a text file

hello,

I try to load a variable from a text file.

I have 2 problems :

  1. swf_on_level0 loads swf2_onlevel5
    and swf2_onlevel5 should load the variable from the text file

I tried this :
sendvar = new LoadVars();
reception_var = new LoadVars();

	sendvar.onLoad = function(success) {
		if (success) {
			
			trace(" blabla");
		} else {
			trace("didn't work");
		}
	};
sendvar.sendAndLoad("text_file.txt, reception_var, "POST");
         
         trace(reception_var.var1);

but there was an error on loading the file !!!

and I put in the txt file : var1=Hello

perhaps I’m completely wrong ??? or not??? One thing is sure that I need to put var1 in an object to use it on level 5…I think :mu:

Thanks for your help :slight_smile:

:glasses: