title: Loading Data By Variable Name (AS3)
body: <p>I've got a code that reads a sound in the language chosen by the user. 
  For now, my code is : </p>
  
  <pre><code>if (english == true){
   helloSound = new hello_english(); 
  }
  if (french == true){
   helloSound = new hello_french(); 
  }
  </code></pre>
  
  <p>As I've got even more words and even more languages to add, I want to simplify my code. </p>
  
  <p>What I'd like to do : </p>
  
  <p>When app launch, the user choose the language.  </p>
  
  <pre><code>english.addEventListener(MouseEvent.CLICK, goEnglish, false, 0, true);
  french.addEventListener(MouseEvent.CLICK, goFrench, false, 0, true);
  
  function goEnglish(event:MouseEvent):void {
  var audioChosen = "english";
  }
  function goFrench(event:MouseEvent):void {
  var audioChosen = "french";
  }
  </code></pre>
  
  <p>And then is it possible to do something like? </p>
  
  <pre><code> helloSound = new hello_(audioChosen)(); 
  </code></pre>
  
  <p>So, in this example, the sound that will be play, would be : <code>hello_english</code></p>