# Sound Repeating

**URL:** https://forum.kirupa.com/t/sound-repeating/191032
**Category:** flash
**Created:** [June 16, 2006, 3:06pm UTC](https://forum.kirupa.com/t/sound-repeating/191032 "2006-06-16T15:06:18Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Rhyno](https://avatars.discourse-cdn.com/v4/letter/r/48db29/32.png) [@Rhyno](https://forum.kirupa.com/u/Rhyno)
#### Post date: [June 16, 2006, 3:06pm UTC](https://forum.kirupa.com/t/sound-repeating/191032/1 "2006-06-16T15:06:18Z")

</div>

I’m trying to Make my sound autoplay when the swf starts. Which this does:

myMusic = new Sound();  
myMusic.loadSound(“sound2.mp3”, true);  
myMusicVolume=100;  
myMusic.setVolume(50);

But i also want to have the sound repeat.  
i thought i was to use:

myMusic.start(0,999)

but i can’t get it to work and start on opening.

This is the code that is on the play button. It works.

on (press) {  
if (playing!=true) {  
\_root.myMusic.start(0,99);  
playing=true;  
}myMusic.onSoundComplete.stop()  
}  
What do i need to change to get it to autoplay on opening, and repeat as well? Any help is appreciated!😃
