title: Procedurally accessing a function's parameter list in actionscript 2.0
body: <p>I can already get at all of the functions in a class by doing something like the following.</p>
  
  <pre><code>for (var member in obj) {
      if (obj[member] instanceof Function) {
          var f:Function = obj[member];
          ...
      }
  }
  </code></pre>
  
  <p>Is there a way to get at a function's parameter list in actionscript?  For example, can I write a function that does something like this?</p>
  
  <pre><code>function getFunctionArguments (f:Function) : Array {
      var argumentArray:Array = new Array();
      for (...) {
          ...
          argumentArray.push({ name:&lt;argumentName&gt;, type:&lt;argument type&gt; });
      }
      return argumentArray;
  }
  </code></pre>
  
  <p>If so, what do I fill in at the ellipses?</p>