title: AS3 Code - Sound not playing
body: <p>I'm trying to play sound in as3 code using an external mp3 file.</p>
  
  <p>So here's the code I am using:</p>
  
  <pre><code>    private function playSound():void
      {
          trace("loading sound");
          var mySound:Sound = new Sound();
          mySound.addEventListener(IOErrorEvent.IO_ERROR, handleIOError);
          mySound.load(new URLRequest("Menu.mp3"));
          mySound.play();
          trace("playing sound");
      }
  
      private function handleIOError(evt:IOErrorEvent):void
      {
          //handle error if needed
      }
  </code></pre>
  
  <p>The music just doesn't play at all.</p>
  
  <p>The traces "loading sound" and "playing sound" appear so the code is being run.</p>
  
  <p>The mp3 file Menu.mp3 is in the same folder as the .fla file used to run the project. Is this the correct directory? I tried moving it around but still couldnt play the sound.</p>
  
  <p>Any help will be appreciated, thanks!</p>