# Streaming non-mp3 audio files?

**URL:** <https://forum.kirupa.com/t/streaming-non-mp3-audio-files/250018>\
**Category:** flash\
**Created:** [January 24, 2008, 5:19pm UTC](https://forum.kirupa.com/t/streaming-non-mp3-audio-files/250018 "2008-01-24T17:19:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![iblokh](https://avatars.discourse-cdn.com/v4/letter/i/8baadc/32.png) [@iblokh](https://forum.kirupa.com/u/iblokh)\
**Post date:** [January 24, 2008, 5:19pm UTC](https://forum.kirupa.com/t/streaming-non-mp3-audio-files/250018/1 "2008-01-24T17:19:37Z")

</div>

My current web host does not allow mp3 files and I would prefer to keep all my files in one place, rather than storing mp3s on an external file hosting service.

What other formats can be streamed in Flash? I was pretty sure .swf and .flv sound files would work, but they aren’t - unless I’m doing something wrong.

Here’s the basic code I’m using:

```auto
private var _song:Sound;
private var _songFile:String; 

```

then in an event handler:

```auto
_songFile = _songNameField.text;
_song = new Sound();
var soundFile:URLRequest = new URLRequest(_songFile);
_song.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
_song.addEventListener(SecurityErrorEvent.SECURITY_ERROR, errorHandler);
_song.load(soundFile);

```

I don’t see a message from either of my error handlers, just no sound. The sog.swf file itself works.
