Buon giorno. Ho questo codice che ho fatto seguendo l'hep di flash che mi dovrebbe permettere di stoppare un suono e farlo ripartire dal punto in cui si e' fermato
stoppare stoppa. partire parte ma nn da dove si era fermato. suggerimenti?
ultima cosa ... esiste un modo x settare il volume da codice?
Codice PHP:
var snd:Sound = new Sound(new URLRequest("suono.mp3"));
var 
channel:SoundChannel snd.play();
var 
pausePosition:int channel.position;
this.music_button.parte.buttonMode true;
this.music_button.stoppa.buttonMode true;
this.music_button.parte.addEventListener(MouseEvent.CLICK,riparte);
this.music_button.stoppa.addEventListener(MouseEvent.CLICK,ferma);



function 
ferma(e:MouseEvent):void
{
    
channel.stop();
}

function 
riparte(e:MouseEvent)
{
    
    
channel snd.play(pausePosition);
}

stop();