title: AS3: Return MovieClip from Function
body: <p>Sorry if this question has already been answered but I can't seem to find any relevant examples online. I basically have a class which loads a set of MovieClip objects and provides accessor functions to return them.</p>
  
  <pre><code>public function getMovieClip( mc:MovieClip ):Boolean
  {
      if( allFilesLoaded )
      {
          mc = fileLoader.content;
  
          return true;
      }
      else
      {
          return false;
      }
  }
  </code></pre>
  
  <p>Obviously this doesn't work, but it gives an idea of what I'm trying to do. I want to return a MovieClip to the calling code only if the object has been loaded.</p>