Targeting

Here’s the problem. I’ve created a form that passes variables to my server fine when I test it locally. However this swf file will eventually get loaded into _level1. Because of this, the variables no longer pass to the server so I’m assuming its some targeting problem. Below is just a example of what I have. . .
[AS]
formData = new LoadVars();
formData.field1 = “”;
formData.field1 = field1.text;

formData.sendAndLoad("http://blah.blahblah.com/somescript.php," “”. “POST”);
[/AS]
So far here are some of the things I’ve attempted which don’t seem to work. . .

this.formData.sendAndLoad . . .

_level1.formData.sendAndLoad . . .

_global.mymovieTimeline = this
//I then use this reference when I’m initializing my variables

All three methods have failed. Any ideas on what the solution would be?

P.S… I know I need another LoadVars instance to receive data. I’m just using the above as an example to explain what I mean. Anyone help?

you don’t need another LoadVars, you can just load the result back into the same one:
formData.sendAndLoad("http://blah.blahblah.com/somescript.php," this, “POST”);
//no DOT in the params!! “”. kills it !!
that’s all you need…
and it’s not so clear in your post, do the vars get sent (test by using send only with a “_blank” target) and no result, or what exactly…?

No no, you’ve mis-understood. The above was just an example. Let me write another one.
[AS]
formData = new LoadVars ();
formData.textInput = “”;
formData.textInput.text;

formData.send("http://www.blah.blahblah.com/somescript.php," “”, “POST”);
[/AS]

okay now can somebody explain to me why i can’t pass my variables to my script when his actionscript is no longer being executed from the root?