title: Referencing a variable based on a combination of strings?
body: <p>I don't really know how to word this.</p>
  
  <p>If I have mutliple variables like</p>
  
  <pre><code>var aHeight:Number = 30;
  var bHeight:Number = 43;
  var cHeight:Number = 02;
  var dHeight:Number = 60;
  var aHeight:Number = 20;
  </code></pre>
  
  <p>and I make a function like</p>
  
  <pre><code>function (mc:MovieClip,heightLetter:String) {
       mc.y = ?;
  }
  </code></pre>
  
  <p>if I just want to reference the letter but not the whole variable is there a way to find it like</p>
  
  <pre><code>[heightLetter+"Height"]
  </code></pre>
  
  <p>or something like that?</p>