1 Reply Latest reply on May 26, 2010 3:49 PM by Dewey

    swf is not recieving sendAndLoad variables


      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:




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


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


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

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


      and here is frame 2:




      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!

        • 1. Re: swf is not recieving sendAndLoad variables
          Dewey Level 1

          I found one of the problems. Apparently it is returning variables but in an unusable form. Here is what is returned:


          Variable _level0.recLV = [object #3, class 'LoadVars'] {
              onLoad:[function 'onLoad'],


          Using colons instead of equal signs? Anyone see how to change this please?