5 Replies Latest reply on Oct 29, 2009 10:57 PM by kglad

    Combine 2 actions

    Devoteé Level 1

      How could I combine these two so it happens when all in one go! (in this case the result is basically it's a web address)

       

      CODE 1

      var senderLoad:LoadVars = new LoadVars();
      var receiveLoad:LoadVars = new LoadVars();

       

      newsender.onRelease = function () {
      senderLoad.fin = fin.text;
      senderLoad.sendAndLoad("http://www.myweb.com/myphp.php",receiveLoad);
      gotoAndStop(25);
      }
      receiveLoad.onData = function (src) {
      hijk.text=src
      }

       

      CODE 2

      newsender.onRelease = function () {
      getURL("the result of code 1", "_blank");
      }