# Sound Question - Fade between loops

**URL:** <https://forum.kirupa.com/t/sound-question-fade-between-loops/160650>\
**Category:** flash\
**Created:** [August 28, 2005, 3:47am UTC](https://forum.kirupa.com/t/sound-question-fade-between-loops/160650 "2005-08-28T03:47:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![clintnash](https://avatars.discourse-cdn.com/v4/letter/c/bbe5ce/32.png) [@clintnash](https://forum.kirupa.com/u/clintnash)\
**Post date:** [August 28, 2005, 3:47am UTC](https://forum.kirupa.com/t/sound-question-fade-between-loops/160650/1 "2005-08-28T03:47:28Z")

</div>

Hello,

```
I have a loop that plays through the first part 3/4 of the animation, at that point, I want to fade out the first loop while fading in the other. I have managed to accomplish a fade out using.

```

firstSound.setVolume(95);

and decreasign the volume in a series of keyframes, however when I try to add get the other loop to start fading in before the other is done, its just doesn’t work.

In the first frame of a layer called Sound level 1 I call this.

firstSound=new Sound();  
firstSound.attachSound(“0274Full”);  
firstSoundVolume=100;  
firstSound.setVolume(firstSoundVolume);

In the second frame of a seperate layer called background I call this…

if (playing!=true) {  
\_root.firstSound.start(0,999);  
playing=true;  
}

This works just fine, In a 3rd layer called Sound Level 2 I tried changing the attached sound like so.  
.  
firstSound=new Sound();  
firstSound.attachSound(“0166Full”);  
firstSoundVolume=0;

And then in the 1st layer bring the volume back up, that didn’t work, nor did creating a new layer and creating a new sound object call secondSound…

any advice on smoothly transitioning between loops is greatly appreciated.

My experience level is slightly above beginner.

thanks,  
Clint…
