Ver Mensaje Individual
  #6 (permalink)  
Antiguo 28/11/2005, 04:49
filly
 
Fecha de Ingreso: junio-2001
Ubicación: Sevilla
Mensajes: 121
Antigüedad: 22 años, 10 meses
Puntos: 0
botones

Muchas gracias, dejo como se ha quedado la botonera:
tengo 4 bontones para mover el mc plano (arriba, abajo, derecha e izquierda) y mientras el ratón está sobre ellos el mc plano está en movimiento y para cuando deja de estar sobre calquiera de los ellos.

derecha.onRollOver = function() {
_root.onEnterFrame = function() {
if (_root.plano._x<500) { //aquí cambias el valor 400 según tu necesidad.
_root.plano._x += 10;
}
};
};
derecha.onRollOut = function() {
_root.onEnterFrame = function() {
stop ();
};
};

izquierda.onRollOver = function() {
_root.onEnterFrame = function() {
if (_root.plano._x>-500) { //aquí cambias el valor 400 según tu necesidad.
_root.plano._x -= 10;
}
};
};

izquierda.onRollOut = function() {
_root.onEnterFrame = function() {
stop ();
};
};

abajo.onRollOver = function() {
_root.onEnterFrame = function() {
if (_root.plano._y<500) { //aquí cambias el valor 400 según tu necesidad.
_root.plano._y += 10;
}
};
};
abajo.onRollOut = function() {
_root.onEnterFrame = function() {
stop ();
};
};

arriba.onRollOver = function() {
_root.onEnterFrame = function() {
if (_root.plano._y >-500) { //aquí cambias el valor 400 según tu necesidad.
_root.plano._y -= 10;
}
};
};

arriba.onRollOut = function() {
_root.onEnterFrame = function() {
stop ();
};
};
__________________
salu2
filly