Ciao a tutti, ho questi 8 bottoni a cui ho dato questi comandi di seguito e volevo sapere:
se è possibile "ridimensionare" lo script 2 se una volta cliccato su un altro bottone, quello precedentemente selezionato torni al suo colore iniziale (al roll over/rollout i bottoni passano da nero ad un colore X, diverso per ognuno, per poi tornare al nero)
il mio codice:
/* abilitazione bottoni
*/
function enable():Void {
btn1.enabled = true;
btn2.enabled = true;
btn3.enabled = true;
btn4.enabled = true;
btn5.enabled = true;
btn6.enabled = true;
btn7.enabled = true;
btn8.enabled = true;
}
btn1.onRelease = function():Void {
trace("home");
enable();
this.enabled = false;
};
btn2.onRelease = function():Void {
trace("services");
enable();
this.enabled = false;
};
btn3.onRelease = function():Void {
trace("special events");
enable();
this.enabled = false;
};
btn4.onRelease = function():Void {
trace("parties");
enable();
this.enabled = false;
};
btn5.onRelease = function():Void {
trace("fashion shows");
enable();
this.enabled = false;
};
btn6.onRelease = function():Void {
trace("locations");
enable();
this.enabled = false;
};
btn7.onRelease = function():Void {
trace("clients");
enable();
this.enabled = false;
};
btn8.onRelease = function():Void {
trace("contacts");
enable();
this.enabled = false;
};
/*azioni menu RollOver
*/
btn1.onRollOver = function(){
this.gotoAndPlay(2)
}
btn2.onRollOver = function(){
this.gotoAndPlay(2)
}
btn3.onRollOver = function(){
this.gotoAndPlay(2)
}
btn4.onRollOver = function(){
this.gotoAndPlay(2)
}
btn5.onRollOver = function(){
this.gotoAndPlay(2)
}
btn6.onRollOver = function(){
this.gotoAndPlay(2)
}
btn7.onRollOver = function(){
this.gotoAndPlay(2)
}
btn8.onRollOver = function(){
this.gotoAndPlay(2)
}
/*azioni menu RollOut
*/
btn1.onRollOut = function(){
this.gotoAndPlay(11)
}
btn2.onRollOut = function(){
this.gotoAndPlay(11)
}
btn3.onRollOut = function(){
this.gotoAndPlay(11)
}
btn4.onRollOut = function(){
this.gotoAndPlay(11)
}
btn5.onRollOut = function(){
this.gotoAndPlay(11)
}
btn6.onRollOut = function(){
this.gotoAndPlay(11)
}
btn7.onRollOut = function(){
this.gotoAndPlay(11)
}
btn8.onRollOut = function(){
this.gotoAndPlay(11)
}
GRAZIE 1000