questo èlo script per un pulsante di verifica e funziona
on (release) {
if (_root.pezzo1.pezzo1ok == true && _root.pezzo2.pezzo2ok == true && _root.pezzo3.pezzo3ok == true && _root.pezzo4.pezzo4ok == true && _root.pezzo5.pezzo5ok == true && _root.pezzo6.pezzo6ok == true) {
mySound= new Sound();
mySound.attachSound("victory.wav");
mySound.start();
}
se io voglio fare senza il pulsante che script devo metterci
on (release) {
if (_root.pezzo1.pezzo1ok == true && _root.pezzo2.pezzo2ok == true && _root.pezzo3.pezzo3ok == true && _root.pezzo4.pezzo4ok == true && _root.pezzo5.pezzo5ok == true && _root.pezzo6.pezzo6ok == true) {
mySound= new Sound();
mySound.attachSound("victory.wav");
mySound.start();
}
se io voglio fare senza il pulsante che script devo metterci
