title: How do I loop and stop a sound using the same button in AS3?
body: <p>I have 4 buttons on stage and I need a code that enables me to click on one of them, loop a specific sound "infinitely", and when it is clicked again, the sound stops. The sound is not initially playing. Also, while one of the sounds is looping, if I press another button, I'd like the previous sound to stop and the new one to play.</p>
  
  <p>To help visualize this more, I will explain my project. I have to create an 'app' that is like an online guitar tuner. This feature is sort of what I would like to recreate: </p>
  
  <p><a href="http://www.gieson.com/Library/projects/utilities/tuner/" rel="nofollow">http://www.gieson.com/Library/projects/utilities/tuner/</a></p>
  
  <p>I don't even know where to begin with the coding... any help is greatly appreciated. Thank you!</p>