Targeting Problem

This is just an example written to explain what I’m saying. . .

[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?

Your code is not logical. formData cannot be of type loadVars and of type String at the same time…

pom :slight_smile:

Sorry, it was a typo. I’ve corrected it

what if I do this
[AS]
formData = new LoadVars();
_global.formData.textInput = ‘’;
_global.formData.textInput.text;

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

Remember the problem I’m having is this code will be loaded into my main movie. The variables weren’t passing because the variables were no longer root.