title: Using a MovieClip as a parameter in AS3
body: <p>I'm having problems attaching MovieClips to different instances of a class. I'm kinda new to ActionScript 3, honestly, so this question might be a bit noobish. I did the research, though, but haven't found the kind of answer that I expected.</p>
  
  <pre><code>function AddNewElement(clip:MovieClip, array:Array, name:String, firstValue:int, secondValue:int):Element
  </code></pre>
  
  <p>As you may be able to guess, this is the function I made to create instances of a class in a dynamic way and add them to an array. I'm having problems with the very first parameter, though. How do I pass a MovieClip from my library to this function?</p>
  
  <p>I saw a lot of answers to problems similar to this one stating that each MovieClip should be a class on its own, but since I have like forty MCs and I want to use them all for more or less the same thing I feel that it kills the purpose of classes, really.</p>
  
  <p>How should I approach this?</p>