title: Unsupported sampling flex/actionscript
body: <p>In action script i need </p>
  
  <pre><code>  Loading configuration file /opt/flex/frameworks/flex-config.xml
    t3.mxml(10): Error: unsupported sampling rate (24000Hz)
  
          [Embed(source="music.mp3")]
  
       t3.mxml(10): Error: Unable to transcode music.mp3.
  
          [Embed(source="music.mp3")]
  </code></pre>
  
  <p>The code is</p>
  
  <pre><code>         &lt;?xml version="1.0"?&gt;
     &lt;!-- embed/EmbedSound.mxml --&gt;
    &lt;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"&gt;
  
    &lt;mx:Script&gt;
      &lt;![CDATA[
  
          import flash.media.*; 
  
          [Embed(source="sample.mp3")]
          [Bindable]
          public var sndCls:Class;
  
          public var snd:Sound = new sndCls() as Sound; 
          public var sndChannel:SoundChannel;
  
          public function playSound():void {
              sndChannel=snd.play();
          }   
  
          public function stopSound():void {
              sndChannel.stop();
          }   
      ]]&gt;
  &lt;/mx:Script&gt;
  
  &lt;mx:HBox&gt;
      &lt;mx:Button label="play" click="playSound();"/&gt;
      &lt;mx:Button label="stop" click="stopSound();"/&gt;
  &lt;/mx:HBox&gt;
  &lt;/mx:Application&gt;
  </code></pre>