Button = show movieclip?

Hi

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]

Please help, thank you.
Bonna

Lap to Flash ? What do you mean by that ?

In the meanwhile, you can check out www.kennybellew.com for tutorials on all sorts of mp3 players :slight_smile:

so sorry lamp, like a ligth :slight_smile:

hope it helps :slight_smile:

I what it to be somthing like this:
[AS]
myMC = show(false);
pause.onPress = function() {
myMC = show(true)
};

[/AS]
“Show();” is fictiv and i am looking for a real function that can hide and reviel, on button press !

Use the _visible property.

myMC._visible = true;//or false

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]


pause.onPress = function() {
if (vol.getVolume() == 100) { 
vol.setVolume(0);
 pausedlamp._visible = true;//or false
} else { 
vol.setVolume(100);
pausedlamp._visible = false;//or false
};
};

pause.onPress = function() {
if (vol.getVolume() == 100) vol.setVolume(0);
else vol.setVolume(100);
pausedlamp._visible = vol.getVolume();
};

…That’s what I’d do. :stuck_out_tongue: