Load Sound

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


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

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

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