title: Flex 4 - Embedding Multiple MP3's
body: <p>I have an mp3 embedded in a Flex application with a start and stop button. Using this code...</p>
  
  <pre><code>&lt;fx:Script&gt;
  &lt;![CDATA[ 
  import mx.core.SoundAsset; 
  import flash.media.*; 
  
  [Embed(source="assets/pie-yan-knee.mp3")] 
  [Bindable] 
  public var Song:Class; 
  
  public var mySong:SoundAsset = new Song() as SoundAsset; 
  public var channel:SoundChannel;
  
  public function playSound():void
  { 
    stopSound(); 
    channel = mySong.play();
  }
  
  public function stopSound():void
  {
    if ( channel != null ) channel.stop();
  } 
  ]]&gt;
  &lt;/fx:Script&gt; 
  
  &lt;s:HGroup&gt; 
  &lt;s:Button label="play" click="playSound();"/&gt; &lt;s:Button label="stop"
    click="stopSound();"/&gt; 
  &lt;/s:HGroup&gt;
  </code></pre>
  
  <p>I want to have multiple instances with different sounds though.
  How can I do this?</p>