title: How to play sound and stop sound using combobox[AS3]?
body: <p>In this code, all sounds play together. </p>
  
  <p>I want when sound1 is playing, sound2 to stop. When sound2 starts to play, sound1 to stop.</p>
  
  <pre><code>stop();
  
  import flash.events.Event;
  import flash.media.Sound;
  
  
  
  var mysound1:MYSf = new MYSf
  var mysound2:sounda = new sounda
  
  combobox.addItem( { label: "sound1" } );
  combobox.addItem( { label: "sound2" } );
  
  
  combobox.addEventListener(Event.CHANGE, myq);
  
  function myq (e:Event):void
  {
      if (combobox.selectedItem.label == "sound1")
      {
          mysound1.play();
          mysound2.stop();
      }
      if (combobox.selectedItem.label == "sound2")
      {
          mysound2.play();
          mysound1.stop();
  
      }
  
  
  }
  </code></pre>