title: embed sound so that when publish we do not have to include it in the same folder as the swf file
body: <p>i have a flash animation with sound that have play,pause,stop,go to start and go to end button.</p>
  
  <p>when i publish it i have to include the mp3 file along with the swf file.</p>
  
  <p>how do i do to get the swf file alone in order to play the whole thing?</p>
  
  <p>i am using flash cs 3 and actionscript 3.0</p>
  
  <p>here is my codes:</p>
  
  <p><code>var mySound:Sound = new Sound();</code></p>
  
  <p><code>var myChannel:SoundChannel = new SoundChannel();</code></p>
  
  <p><code>var lastPosition:Number = 0;</code></p>
  
  <p><code>var soundIsPlaying:Boolean = true;</code></p>
  
  <p><code>mySound.load(new URLRequest("saloma.mp3"));</code></p>
  
  <p><code>myChannel = mySound.play();</code></p>
  
  <p>all those buttons will go to functions,</p>
  
  <p><code>go.addEventListener(MouseEvent.CLICK,govid);</code></p>
  
  <p><code>function govid(event:MouseEvent):void{</code></p>
  
  <p><code>play();</code></p>
  
  <p><code>if(!soundIsPlaying){</code></p>
  
  <p><code>myChannel = mySound.play(lastPosition);</code></p>
  
  <p><code>soundIsPlaying = true;</code></p>
  
  <p><code>}</code></p>
  
  <p><code>}</code></p>
  
  <p>i am also using scenes to navigate them,</p>
  
  <p><code>gte.addEventListener(MouseEvent.CLICK,gotoend);</code></p>
  
  <p><code>function gotoend(event:MouseEvent):void{</code></p>
  
  <p><code>gotoAndStop(1,"ending");</code></p>
  
  <p><code>}</code></p>
  
  <p>thank you :)</p>