i pulsanti vanno chiamati allo stesso modo con un numero di indice, nel mio esempio abbiamo 4 pulsanti nella root, chiamati "puls1", "puls2", "puls3", "puls4"
codice:
//questo va sulla timeline
function enableAll(escl){
for(i=1; i<=4; i++){
if (_root["puls"+i] != _root["puls"+escl]){
_root["puls"+i].enabled = true;
} else {
_root["puls"+i].enabled = false;
}
}
};
// questo va sui pulsanti
// se il pulsante è "puls1"
on (release){
enableAll(1);
//azioni
}
// se il pulsante è "puls2"
on (release){
enableAll(2);
//azioni
}
ecc...