title: Change active microphone in AS3
body: <p>Is there a way to change the active microphone in AS3 without using the SecurityPanel.MICROPHONE?  All of my attempts stop all microphone activity, even if triggered by a button click.</p>
  
  <p>If I do:</p>
  
  <pre><code>var mic:Microphone = Microphone.getMicrophone(index);
  </code></pre>
  
  <p>I can listen and get microphone activity, level and SampleEvents.  All works well.</p>
  
  <p>If at a later point I do:</p>
  
  <pre><code>mic = Microphone.getMicrophone(newIndex);
  </code></pre>
  
  <p>I start getting -1 for mic.activityLevel and receive no SampleEvents, but I can get the proper name of the new mic with</p>
  
  <pre><code>mic.name;
  </code></pre>
  
  <p>For simplicity assume that index and newIndex are both working sources that have been tested, and either work if passed in with the initial microphone request.</p>
  
  <p>Is this viewed as a security risk and not allowed?  Once you initialize one mic, is that what you are stuck with?  I have switched cameras in air, but that was air.</p>
  
  <p>*as a side note, I can not use the SecurityPanel to do this because of the potential for feedback when accessed from FireFox on osx if the computer is hooked to speakers.  I have tried dropping all sound output to 0 before opening the window, but the level comes back up as soon as SecurityPanel.MICROPHONE is active.  Unfortunately, just asking the users to turn down their speakers, is not an option.</p>