I am making a mp3 player, and i would like to have a “lamp to flash”(movieclip if posible) when i pause the player. My action script is until now this:
[AS]
var vol = new Sound();
pause.onPress = function() {
if (vol.getVolume() == 100) vol.setVolume(0);
else vol.setVolume(100);
};
[/AS]
Thanks
I can turn it off but cant turn is on again? I cant see there is anything wronge with my AS but for safty i attached it:
[AS]
pause.onPress = function() {
if (vol.getVolume() == 100) { vol.setVolume(0);
pausedlamp._visible = true;//or false
}
else vol.setVolume(100);
pausedlamp._visible = false;//or false
};
[/AS]