title: AS3- Is it possible to call a variable from a string?
body: <p>Is there a way to make "getDefinitionByName()" work with any Object type, I have only gotten it to work with a Class:</p>
  
  <pre><code> var test:Class = getDefinitionByName("myClass") as Class;
  </code></pre>
  
  <p>I need something like:</p>
  
  <pre><code>var myNumber:Number = 10; 
  var test:Number = getDefinitionByName("myNumber") as Number;
  
  trace(test); //10
  </code></pre>
  
  <p>Or is there another method to achieve this?</p>