ok so here’s my code :
mc1.onRelease = function() {
if(nowPlaying !== 1){
nowPlaying = 1;
audio.loadSound("mySound1.mp3", true);
preload(1);
audio.start(pausePos);
}else{
nowPlaying = 0;
audio.stop();
pausePos = audio.position/1000;
}
};
when i click mc1 it starts playing when i click it again it stops. when i click it a third time it starts from the beginning. I’d want it to play from where it left, but it doesn’t work. does anyone know what i’m doing wrong ? thanks.