# Preloader + Loading audio after

**URL:** <https://forum.kirupa.com/t/preloader-loading-audio-after/231748>\
**Category:** flash\
**Created:** [July 7, 2007, 12:01pm UTC](https://forum.kirupa.com/t/preloader-loading-audio-after/231748 "2007-07-07T12:01:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tensaislim](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/tensaislim/32/785_2.png) [@tensaislim](https://forum.kirupa.com/u/tensaislim)\
**Post date:** [July 7, 2007, 12:01pm UTC](https://forum.kirupa.com/t/preloader-loading-audio-after/231748/1 "2007-07-07T12:01:39Z")

</div>

Hi. I am having troubles loading an external audio track after a preloader has finished. In other words, when I preview my movie and SIMULATE download, the audio doesn’t play after the preloader has finished. Can anybody help?! Thankyou. Here is the actionscript which is on Frame1:

stop();

function showPercent(){  
var total:Number = getBytesTotal();  
var loaded:Number = getBytesLoaded();  
var percent:Number = loaded / total \* 100;

```
percent = Math.floor(percent);

thePreloaderBar._width = percent;
thePercentTextField.text = percent + "%";

trace("loading: " + percent);
if(percent == 100){
    gotoAndStop(2);
    clearInterval(myInterval);
}

```

}

myInterval = setInterval(showPercent, 500);

var mySound:Sound = new Sound();

mySound.onLoad = function(success){  
if(success == true){  
trace(“found the song”);  
this.start();  
}else{  
trace(“problem loading song”);  
}  
};

mySound.loadSound(“Craig David - All The Way.mp3”, false);

myClipStop.onRelease = function(){  
mySound.stop();  
};

myClipDown.onRelease = function(){  
mySound.setVolume(50);  
};

myClipUp.onRelease = function(){  
mySound.setVolume(100);  
};
