# Help with sound if you please

**URL:** https://forum.kirupa.com/t/help-with-sound-if-you-please/240777
**Category:** Uncategorized
**Created:** [October 6, 2007, 12:46am UTC](https://forum.kirupa.com/t/help-with-sound-if-you-please/240777 "2007-10-06T00:46:25Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![rkorda](https://avatars.discourse-cdn.com/v4/letter/r/5f8ce5/32.png) [@rkorda](https://forum.kirupa.com/u/rkorda)
#### Post date: [October 6, 2007, 12:46am UTC](https://forum.kirupa.com/t/help-with-sound-if-you-please/240777/1 "2007-10-06T00:46:25Z")

</div>

how can I make this sound to start automatically. for some reason it waits till I touch the volume bar. THanks!

this is the code inside the volume slider:

onClipEvent (load) {  
mySound = new Sound();  
mySound.loadSound(“IgalLoop.mp3”, false);  
}  
onClipEvent (enterFrame) {

```
downloaded = mySound.getBytesLoaded();
total = mySound.getBytesTotal();
if (downloaded != total) {
	_root.dl = "downloading song...";
} else {
	complete = 1;
	_root.dl = "";
}
mySound.setVolume(_root.volume);

```

}

this is the code in the first frame of the volume slider:

this.ratio =0;  
dragger.\_x=100  
dragger.onPress = function() {  
this.startDrag(true, 0, 0, line.\_width, 0);  
this.onEnterFrame = function() {  
ratio = Math.round(this.\_x\*100/line.\_width);  
\_root.volume = ratio;  
};  
};  
dragger.onRelease = dragger.onreleaseOutside=stopDrag;

thanks so much for your help!!!
