# Load Sound

**URL:** https://forum.kirupa.com/t/load-sound/35833
**Category:** flash
**Created:** [November 18, 2003, 6:17pm UTC](https://forum.kirupa.com/t/load-sound/35833 "2003-11-18T18:17:29Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![flash\_legend](https://avatars.discourse-cdn.com/v4/letter/f/2acd7d/32.png) [@flash\_legend](https://forum.kirupa.com/u/flash_legend)
#### Post date: [November 18, 2003, 6:17pm UTC](https://forum.kirupa.com/t/load-sound/35833/1 "2003-11-18T18:17:29Z")

</div>

good day members

i am using FLASH MX

i am trying to load sound and i wish someone to help me if this code is right or wrong

i want to load sound by using this code  
Sound.loadSound(url,is streaming)

the steps are like this;

in first frame i add this code

```php

mysound= new Sound();
mysound.Loadsound("thesound.mp3",true);
soundtotal=_root.getBytesTotal();
soundloaded=_root.getBytesLoaded();
percent=Math.round((soundloaded/soundtotal)*100);
bar._xscale=percent;
if(soundloaded== soundtotal){
_root.gotoAndPlay(3);
}

```

on second frame i add this code

```php
gotoAndPlay(1)

```

on the third frame i add stop(); action  
and on the stage i add a button and i add this code on it

```php
on (release){
mysound.start();
}

```

my problem is when i try to test the loading bar it is not showing the bar during the loading

is there amy solution to solve this problem

hope my question is clear

thanks alot
