title: How to pass a class as a variable?
body: <p>Is there a way to pass a Class as a variable in Actionscript 3.0?</p>
  
  <p>For example:</p>
  
  <pre><code>private var myType:* // not sure how to pass, it's a class which implements an interface
  
  myType = ClassA; // myType is now ClassA which extends Sprite;
  myType = ClassB; // myType is now ClassB which extends Sprite;
  </code></pre>