title: playing sound by making an array from library files in as3?
body: <p>I am trying to play random sounds from library files(not from external mp3 files). I have created an array of sound objects but when I try to play a sound from the array it is not playing. please help?</p>
  
  <pre><code>var dgSound:Sound = new DogSound();
  var lnSound:Sound = new LionSound();
  var snSound:Sound = new SnakeSound();
  var mySoundArray:Array = new Array("dgSound","lnSound","snSound");
  mySoundArray[0].play();
  </code></pre>
  
  <p>when I play a specific file, it works</p>