Ver Mensaje Individual
  #4 (permalink)  
Antiguo 06/03/2004, 09:58
Avatar de etmoreno
etmoreno
 
Fecha de Ingreso: diciembre-2002
Ubicación: near fireplace
Mensajes: 404
Antigüedad: 21 años, 4 meses
Puntos: 1
prueba con esto

onClipEvent (load) {
xcenter = 500;
speed = -1/25;
pos_sup = this._y - (this._height / 2)
pos_inf = this._y + (this._height / 2)

}
onClipEvent (enterFrame) {
if (_root._ymouse > pos_sup and _root._ymouse < pos_inf) {
var distance = _root._xmouse-xcenter;
_x += (distance*speed);
if (_x>610) {
_x = 610;
}
if (_x<320) {
_x = 320;
}
}
}

Espero te funcione.

Saludos ;)