Ver Mensaje Individual
  #3 (permalink)  
Antiguo 25/07/2008, 15:43
Avatar de K-Yezaad
K-Yezaad
 
Fecha de Ingreso: octubre-2005
Mensajes: 140
Antigüedad: 18 años, 6 meses
Puntos: 3
Respuesta: Alguna de forma de reducir este codigo

Y le podemos recortar un poco mas :P
Código:
buttons = [excel_mc, word_mc, per_mc];
for (a = 0; a < buttons.length; a++)
{
	buttons[a].onRollOver = function() {
		this._xscale = this._yscale = 125;
	};
	buttons[a].onRollOut = function() {
		this._xscale = this._yscale = 100;
	};
	buttons[a].onPress = function() {
		this.startDrag();
	};
	buttons[a].onRelease = function() {
		this.stopDrag();
	};
}