...is the theoretical code for what you want. Create the sound object, then start it like above. But the ammount of seconds in the first postion in the brackets and how many time you want to loop it in the second position. That's it.
if you can 10 seconds of silence then it would be simple to write a piece of code to loop for 10 seconds with setvolume = 0 followed by setvolume = 100.
Frame 1
now = getTimer();
Frame 3
sound_off = now + 10000; //10 secs
if (sound_off<getTimer()){
mysound.setvolume(0);
gotoAndPlay(2);
}else{
mysound.setvolume(100);
}
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.