Требует наличия двух кнопок(fin и fout ) в руте, и звука с именем bombam в библиотеке

Код:
function fadeIn(snd:Sound, speed:Number):Void {
this.onEnterFrame = function() {
snd.setVolume(snd.getVolume() - speed);
trace("in:"+snd.getVolume());
if (snd.getVolume() < 0) {
snd.setVolume(0);
delete this.onEnterFrame;
}
};
}
function fadeOut(snd:Sound, speed:Number, max:Number):Void {
this.onEnterFrame = function() {
snd.setVolume(snd.getVolume() + speed);
trace("out:"+snd.getVolume());
if (snd.getVolume() > max) {
snd.setVolume(max);
delete this.onEnterFrame;
}
};
}
var my_snd:Sound = new Sound();
my_snd.attachSound("bombam");
my_snd.start();
fin.onRelease =function() {
_root.fadeIn(_root.my_snd,5);
}
fout.onRelease =function(){
_root.fadeOut(_root.my_snd,5,100);
}