7 Replies Latest reply on May 27, 2010 5:43 PM by Dewey

    swf is not recieving sendAndLoad variables

    Dewey

      Hello All,

       

      I am using  the sendAndLoad class to perform a script through PHP and load the  variables back into the swf. Using Firefox Firebug, I am able to tell  that everything is executing correctly, including the PHP script  returning the following variables:

       

      &mySubscriberID=36&firstName=Bill

       

      But the  variables are not making it back into the swf file. Here is the code for  the first frame of my flash file:

       

      stop();      
      var sendLV = new  LoadVars();
      var recLV = new LoadVars();

       

      recLV.onLoad =  function(success:Boolean){
      trace("recLV back from php");
      }

      sendLV.onLoad  = function(success:Boolean){
          nextFrame();
          trace("sendLV  back from php");
      }
      sendLV.sendAndLoad("connect7a.php",recLV);

       

      and here is  frame 2:

       

      stop();

       

      recLV.createTextField("t_txt",  1, 100, 100, 1, 1);
      recLV.t_txt.autoSize = true;
         
      recLV.t_txt.text  = "My email address is " + recLV.emailaddress + ".\n";
      recLV.t_txt.text  += "My subscriber id is " + recLV.mySubscriberID + ".\n";
      recLV.t_txt.text  += "My first name is " + recLV.firstName + ".\n";

       

      I also have  dynamic text fields with the above variables assigned to them. Any ideas  on why the swf is not receiving the data? ANY help at all would be  appreciated. Thanks in advance!