The below code works great... but if I load the swf with this code in it into another movie the code breaks. I thought LoadVars was universal and just know where to send the info back to. How do I send the info back to the LoadVars in the variable scope?
Thanks
-------------------------------------
Actionscript
var EdsVars:LoadVars = new LoadVars();
EdsVars.onLoad = function():Void{
trace(EdsVars.FirstName);
trace(EdsVars.MiddleName);
trace(EdsVars.LastName);
};
EdsVars.fn = "Edward";
EdsVars.ln = "Vizenor";
EdsVars.sendAndLoad("
http://www.massmediamail.com/loadvars.php", EdsVars,"POST");
trace(EdsVars.LastName)
PHP
<?
$fn = $_POST[fn]; // These are the vars from the flash. To get them use must use $_POST[fn]
$ln = $_POST['ln']; // Can be with the ' or without.
echo "&FirstName=$fn";
echo "&MiddleName=Mary John";
echo "&LastName=$ln";
?>