# Start sound immediately...?

**URL:** https://forum.kirupa.com/t/start-sound-immediately/123493
**Category:** Uncategorized
**Created:** [September 24, 2004, 6:05am UTC](https://forum.kirupa.com/t/start-sound-immediately/123493 "2004-09-24T06:05:02Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![tanvi](https://avatars.discourse-cdn.com/v4/letter/t/9de053/32.png) [@tanvi](https://forum.kirupa.com/u/tanvi)
#### Post date: [September 24, 2004, 6:05am UTC](https://forum.kirupa.com/t/start-sound-immediately/123493/1 "2004-09-24T06:05:02Z")

</div>

[http://www.kirupa.com/developer/mx/volume\_slider.htm](http://www.kirupa.com/developer/mx/volume_slider.htm)

i am following these tuts but evrything is working fine but what i want is that my music should start playing immediately as it is loaded rather then waiting to click button to play…

so far i tried is:

[color=navy]onClipEvent (load) {  
mySound = new Sound();  
mySound.loadSound("\_jUsT-Rudy\_Ves-8003\_hifi.mp3", false);  
[/color] [color=darkorange]mySound.onLoad = playSound();  
function playSound(success) {  
if (success) {  
mySound.start();  
}  
[/color] [color=navy]}  
}  
onClipEvent (enterFrame) {  
downloaded = mySound.getBytesLoaded();  
total = mySound.getBytesTotal();  
if (downloaded != total) {  
\_root.dl = “downloading song…”;  
} else {  
complete = 1;  
\_root.dl = “playing”;  
}  
mySound.setVolume(\_root.volume\*2);  
}  
[/color]  
[color=black]where i a going wrong…???[/color]  
[color=black]help me[/color]
