I am trying to stream an mp3 file using the following code buy am getting no luck:
var s:Sound = new Sound(); var req:URLRequest = new URLRequest("track01.mp3"); var trans:SoundTransform = new SoundTransform(0.3); var context:SoundLoaderContext = new SoundLoaderContext(8000, true); s.load(req, context); s.play(0, 20,trans);
When I export the file from flash, it doesn't play the audio. When I view it in HTML, it doesn't play the audio. But when I open the swf file DIRECTLY using flash player - the audio plays!
Any ideas on where the problem lies?
NOTE: I am using swfObject 2.2 when embedding it in the HTML.