title: How are Flash files without class definitions compiled?
body: <p>Let's use the code from the first section of <a href="http://permadi.com/blog/2010/06/flash-as3-using-filereference-to-load-files-example-for-flash-cs4-and-above/" rel="nofollow">this</a> website. I don't see a class declaration, and my program cannot be built in FlashDevelop. I receive the following error message:</p>
  
  <pre><code>Error: A file found in a source-path must have an externally visible definition. If a definition in the file is meant to be externally visible, please put the definition in a package.
  Build halted with errors (fcsh).
  </code></pre>
  
  <p>What should I do in order to be able to build &amp; run it?</p>