1 Reply Latest reply on Jul 27, 2007 5:57 PM by kglad

    return var

    Chilectro
      Hello Folks,


      Quick question, trying to do some action script however its not going to well.

      [code]
      function testing() {
      envia = new LoadVars();
      flvURL = "BDAGMgdzVTFYel5tVCZUZQR3WzALPgl3";
      envia.r = flvURL;
      recibe = new LoadVars();
      envia.sendAndLoad(" http://localhost/web/crypto.php", recibe, "POST");
      recibe.onLoad = function(recibido) {
      if(recibido) {
      trace(recibe.decrypted);
      // return recibe.decrypted;
      }
      } return [VARIABLE];

      }
      myVariable = testing();
      [/code]

      Inside the code trace is working nicely, however when i am trying to return the var, its says UNDEFINED
      Please Advise!