![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
06/03/2004, 09:58
|
![Avatar de etmoreno](http://static.forosdelweb.com/customavatars/avatar28617_1.gif) | | | Fecha de Ingreso: diciembre-2002 Ubicación: near fireplace
Mensajes: 404
Antigüedad: 22 años, 2 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 ;) |