# Flash external mp3 compression

**URL:** <https://forum.kirupa.com/t/flash-external-mp3-compression/224005>\
**Category:** flash\
**Created:** [April 27, 2007, 1:41pm UTC](https://forum.kirupa.com/t/flash-external-mp3-compression/224005 "2007-04-27T13:41:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![shaytac](https://avatars.discourse-cdn.com/v4/letter/s/50afbb/32.png) [@shaytac](https://forum.kirupa.com/u/shaytac)\
**Post date:** [April 27, 2007, 1:41pm UTC](https://forum.kirupa.com/t/flash-external-mp3-compression/224005/1 "2007-04-27T13:41:26Z")

</div>

Hi I m working on a project that requires flash buttons to play external mp3 files. Below is the code that i m using to achieve this. But when played sound files seems to be loaded slow and pauses occur during the play. I was wondering if there is a way to compress external mp3 files through flash, therefore minimizing the occurance of the pauses.

```auto

// Create sound instance and assign function to onLoad event
var song:Sound = new Sound();
song.onLoad = loadDone;
// Button onRelease event handler
startLoad.onRelease = function() {
    song.loadSound("mp3/addvocab1/tilessent.mp3", true);
    _root.onEnterFrame = loadProgress;
};

```
