В общем это виновата моя невнимательность. Вот я поправил код.

Код AS1/AS2:
var sounds:Array = new Array();
for (i=1; i<4; i++) {
sounds[i] = new Array();
var mc:MovieClip = this.createEmptyMovieClip('s'+i+'_mc', this.getNextHighestDepth());
sounds[i] = new Sound(mc);
sounds[i].loadSound('s'+i+'.mp3',false);
sounds[i].onSoundComplete = function():Void {
this.positionS = 0;
this.flag = true;
};
var btn:MovieClip = this['s'+i+'_btn'];
btn.num = i;
btn.onRollOver = startPlay;
btn.onRollOut = fadeOutSound;
}
function startPlay() {
var n:Number = this.num;
sounds[n].start(Math.floor(sounds[n].positionS/1000));
sounds[n].setVolume(40);
}
function fadeOutSound() {
n = this.num;
if (id) {
clearInterval(id);
}
var volume = sounds[n].getVolume();
id = setInterval(fadeOut, 10);
function fadeOut():Void {
sounds[n].setVolume(volume--);
if (volume<=0) {
clearInterval(id);
sounds[n].stop();
if (sounds[n].flag == true) {
sounds[n].flag = false;
} else {
sounds[n].positionS = sounds[n].position;
}
}
}
}
Добавлено через 4 минуты
Причём тут -
http://www.flasher.ru/forum/showpost...9&postcount=25
Я написал, что нужно в функции обработчике объекта Sound описывать параметры объекта через ключевое слово this. А потом видимо "расслабился" и сам упустил это из виду

Эх.