# \[F8\] Sound Script problem, newb need AS Masta help badly!

**URL:** https://forum.kirupa.com/t/f8-sound-script-problem-newb-need-as-masta-help-badly/170938
**Category:** flash
**Created:** [November 30, 2005, 5:34pm UTC](https://forum.kirupa.com/t/f8-sound-script-problem-newb-need-as-masta-help-badly/170938 "2005-11-30T17:34:40Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![freya](https://avatars.discourse-cdn.com/v4/letter/f/a9a28c/32.png) [@freya](https://forum.kirupa.com/u/freya)
#### Post date: [November 30, 2005, 5:34pm UTC](https://forum.kirupa.com/t/f8-sound-script-problem-newb-need-as-masta-help-badly/170938/1 "2005-11-30T17:34:40Z")

</div>

I follow kirupa volume slider tutorial  
and place it on my timeline

and i got a problem, the sound [bgm] only play once  
even i already write down start(0,99);

here my script

**in timeline**  
{  
if (\_root.musicpreloader.complete == 1) {  
\_root.musicpreloader.mySound.attachSound(“bgm.mp3”);  
\_root.musicpreloader.mySound.start(0,999);  
}  
}

\*\*in empty mc  
\*\*  
onClipEvent (load) {  
mySound = new Sound(soundmc);  
mySound.loadSound(“bgm.mp3”, true);  
mySound.setVolume(25);  
}  
onClipEvent (enterFrame) {  
downloaded = mySound.getBytesLoaded();  
total = mySound.getBytesTotal();  
if (downloaded != total) {  
\_root.dl = “D/L song…”;  
} else {  
complete = 1;  
\_root.dl = “Now Playing…”;  
}  
}

this code all in frame one  
is stop(); script on a frame 2 make the sound un-loopable ?

i using digital clock + date script too  
please help and thanks before ^^
