# Incorp the loading of an mp3 on the preloader

**URL:** <https://forum.kirupa.com/t/incorp-the-loading-of-an-mp3-on-the-preloader/61746>\
**Category:** Uncategorized\
**Created:** [August 21, 2004, 8:24am UTC](https://forum.kirupa.com/t/incorp-the-loading-of-an-mp3-on-the-preloader/61746 "2004-08-21T08:24:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![snoop\_gee](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/snoop_gee/32/660_2.png) [@snoop\_gee](https://forum.kirupa.com/u/snoop_gee)\
**Post date:** [August 21, 2004, 8:24am UTC](https://forum.kirupa.com/t/incorp-the-loading-of-an-mp3-on-the-preloader/61746/1 "2004-08-21T08:24:51Z")

</div>

For example purposes i am using the following mp3, which i have loading but the webvistors don’t know wats going on because there is no loading bar.  
my\_sound = new Sound(this);  
my\_sound.loadSound(“[http://www.glitzentertainment.com/glitinc/documents/13.CWhisky-HQ-MPThaWizzard-NoProblems2.mp3](http://www.glitzentertainment.com/glitinc/documents/13.CWhisky-HQ-MPThaWizzard-NoProblems2.mp3)”, true);

I tried playing around with the code but i was unsucessful.  
bytes\_loaded = Math.round(this.getBytesLoaded());  
bytes\_total = Math.round(this.getBytesTotal());  
getPercent = bytes\_loaded/bytes\_total;  
this.loadBar.\_width = getPercent_100;  
this.loadText = Math.round(getPercent_100)+"%";  
if (bytes\_loaded == bytes\_total) {  
this.gotoAndPlay(3);  
}

And i have seen the tutorials already,but some how is it possible to add the mp3 to load up on the preloader as file and after it has completed downloading the mp3 to play automatically.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 21, 2004, 12:11pm UTC](https://forum.kirupa.com/t/incorp-the-loading-of-an-mp3-on-the-preloader/61746/2 "2004-08-21T12:11:17Z")

</div>

You have to make a loadBar and place it on your stage, that’s all

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 21, 2004, 12:36pm UTC](https://forum.kirupa.com/t/incorp-the-loading-of-an-mp3-on-the-preloader/61746/3 "2004-08-21T12:36:47Z")

</div>

no no no that’s not what i mean’t i mean it loads up like a audio player.  
Example of this is some kind of preloading progress bar within the audio player to download the mp3 and once it finishes it plays. Please view attachment but the preloader is not working wat is happen… :\*(
