title: Getting the source code of a function?
body: <p>Is there anyway I can get the code inside a function in Actionscript (Preferably AS1)?</p>
  
  <p>For example, let's say I have this function:</p>
  
  <pre><code>function foo(){
      trace("bar");
  }
  </code></pre>
  
  <p>Is there anyway I can get the text 'trace("bar");' from the function WITHOUT modifying the actual function?</p>
  
  <p>Like this (psuedo code):</p>
  
  <pre><code>trace(foo.source);
  </code></pre>
  
  <p>Would trace the text 'trace("bar");'</p>