funziona non preoccuparti e grazie
per curiosità ti posto il codice
function Audioattach() {
k = 0;
conteggio = 0;
for (i=1; i<19; i++) {
attachMovie("clipaudio", "clipaudio"+i, i);
this["clipaudio"+i]._x = 15;
this["clipaudio"+i]._y = 25+k*18;
conteggio++;
k++;
}
}
Audioattach();
this.quanti = 18;
for( var a = 1; a <= this.quanti; a++ ) {
var b = String(a);
this['riproduzione'+b] = true;
this['s'+b] = new Sound();
this['s'+b].loadSound( 'audio1/file'+b+'.mp3' ,false);
this['clipaudio'+b].clip3 = this;
this['clipaudio'+b].__check = b;
this['clipaudio'+b].onRelease=function(){
if( this.clip3['riproduzione'+this.__check] ) {
for( var a = 1; a <= this.clip3.quanti; a++ ) {
var b = String( a );
if( Number( this.__check ) == a ) {
this.clip3['riproduzione'+this.__check] = false;
this.clip3['s'+this.__check].start(0,1);
}
else {
this.clip3['riproduzione'+this.__check] = true;
this.clip3['s'+b].stop();
}
}
}
}
}

Rispondi quotando