Hi, i have this code for about 10buttons and i was wondering if there is a way to do this without having to write it out like 10times:
Is there any way of doing this, or is this the only way?
Regards,
Martin
Computing Help And Info:
Code:
//irc
this.btnIRC.onRollOver = function() {
this.gotoAndPlay(2);
};
this.btnIRC.onRollOut = function() {
this.gotoAndPlay(11);
};
//home
this.home.onRollOver = function() {
this.gotoAndPlay(2);
};
this.home.onRollOut = function() {
this.gotoAndPlay(11);
};
Is there any way of doing this, or is this the only way?
Regards,
Martin
Computing Help And Info: