title: Dynamically Instancing Objects ActionScript 3.0
body: <p>I have a variable named "type".  And I want to instance an object with the name of the value of type.  Here is an example:</p>
  
  <pre><code>var myObjectName = "ball";
  var object = new ball(); //Except I want to use the value of myObjectName.
  </code></pre>
  
  <p>I believe this used to be easy with AS2 when using _global, but I'm not sure how to do it in AS3?</p>
  
  <p>Any help?</p>