title: how to place nested actionscript function in an actionsript project into separate actionscript file?
body: <p>I'm using Flash Builder 4.5. In an .mxml file, if you want to use an actionscript function residing in an external .as file, one simply adds to the .mxml file:</p>
  
  <pre><code>&lt;fx:Script source="filename.as"/&gt;
  </code></pre>
  
  <p>where filename.as contains the actionscript function(s).</p>
  
  <p>Is there a way to do a similar thing from an .as project file? That is, I have an actionscript project created in Flash Builder 4.5 (e.g. no .mxml files anywhere), and I have a nested actionscript function. How can I place that nested actionscript function in an external file, then call it from the original file? My goal is to have that nested actionscript function be called from multiple other files, so I don't have to nest it multiple times.</p>