SoundAS
SoundAS copied to clipboard
SoundInstance.fadeTo Bug
Assume you have 2 instances of the same sound
var si_1:SoundInstance = SoundAS.getSound("somesfx",true); var si_2:SoundInstance = SoundAS.getSound("somesfx",true);
now if both sounds are playing and you wanted to fade out one of them the SoundInstance.fadeTo method doesn't actually fade that instance .. it calls the SoundManager.addTween with the "type" of sound .. many instances are playing having the same type! .. in this case the addTween method call the getSound() method that throws a stack overflow error .
Thanks for the report! I'll try and find some time to dig into this soon.