Ciao, uso il seguente codice per gestire il caricamenteto del suono e la regolazione del volume:

Codice PHP:
var my_sound:Sound = new Sound();
my_sound.attachSound("ch001_Gobi.wav");
my_sound.start();
my_sound.setVolume(100);

function 
fadeIn(){
    var 
vol my_sound.getVolume();
    if(
vol 100){
        
vol+=10;
        
my_sound.setVolume(vol);
    }else{
        
clearInterval(fade);
    }
}

function 
fadeOut(){
    var 
vol my_sound.getVolume();
    if(
vol 5){
        
vol=vol-5;
        
my_sound.setVolume(vol);
    }else{
        
clearInterval(fade);
    }


... però se richiamo le funzioni fadeIn e fadeOut non funziona, il volume rimane sempre a 100...

dove sbaglio?

Grazie & Ciao!