Ver Mensaje Individual
  #2 (permalink)  
Antiguo 05/06/2007, 13:43
roceth
 
Fecha de Ingreso: mayo-2006
Mensajes: 77
Antigüedad: 17 años, 10 meses
Puntos: 1
Re: Múltiples botones rollover/out

En problema es que estas utilizando la misma variable (_root.targety) para todos los botones.
Mi consejo es que pongas el código en el clip, no en la instancia cambiando _root por this (creamos asi una variable en cada instancia):
this.targety = 583;
this.onEnterFrame=function(){
diff = this.targety - this._y;
this._y += diff/5;
}
this.onRollOver=function(){
this.targety = 563;
}
this.onRollOut=function(){
this.targety = 583;
}