samedi 24 janvier 2015

AS2 - On/Off button that adjusts visibility

I have a button that is a switcher on/off. I have a movieclip that I want it to be visible true and visible false accordingly. If movieclip is visible true then make it visible false. else if it's visible false make it visible true


This is my code:



on(release){
if(_root.facebtns.eyelashes = _visible = true) {
_root.facebtns.eyelashes._visible = false;
} else if(_root.facebtns.eyelashes = _visible = false) {
_root.facebtns.eyelashes._visible = true;
}
}

Aucun commentaire:

Enregistrer un commentaire