title: Return value from actionscript 2 function
body: <p>I have this function structure:</p>
  
  <pre><code>function doStuff():Boolean {
      variables = new LoadVars();
      variables.anything = "xxx";
      variables.onLoad = function(success) {
          if (success) {
              doStuff;
              results = true;
          } else {
              results = false;
          }
      };
      variables.sendAndLoad(url, variables, "POST");
      return results;
  }
  </code></pre>
  
  <p>Function works fine, but can´t return properly the 'results' value. Any idea?</p>