Ok, so I wanted to make an sound effect effect so that a sound would fade out/in. So I imported/attached two songs.(song1, song2)
And I make some loops and setIntervals to fade them but it wouldn't work. Because I was going to have one sound fade out and another one fade in, in the background. So I tried using setVolume change the volumes of the songs.
But I thought when I read the flash help on setVolume that it said "Sets the volume for a Sound object."
But it actually says "Sets the volume for the Sound object."
So if I change the setVolume value it changes it for all of my sounds. But I only need it to change for one.
TL;TR:
sound1.start();
sound2.start();
sound1.setVolume(100)
sound2.setVolume(0)
That make both songs volume equal 0 I only want song 2 to equal 0
I think I found something that actionScript can't do O.o