Everything except for the resume button on my sound player doesn’t work. The stop works fine, but it doesn’t seem to start back up again when I press the resume.
Here is the code:
**
s = new Sound();
s.loadSound(“teste.mp3”,true);
acao = “desligar”
_root.onEnterFrame = function () {
//TURN OFF
if (acao==“desligar”) {
controleSom_button.onPress = function () {
cue = Math.round(s.position/1000);
s.stop();
_root.controleSom_button.gotoAndStop(2);
acao = “ligar”
}
}
//TURN ON (RESUME)
if (acao==“ligar”) {
controleSom_button.onPress = function () {
s.start(cue,1);
_root.controleSom_button.gotoAndStop(1);
acao = “desligar”
trace (cue);
}
}
}
**
Thanks!! :thumb: