Ver Mensaje Individual
  #2 (permalink)  
Antiguo 01/09/2006, 17:37
Avatar de Bandit
Bandit
Moderador
 
Fecha de Ingreso: julio-2003
Ubicación: Lima - Perú
Mensajes: 16.726
Antigüedad: 20 años, 9 meses
Puntos: 406
Hola menfis_megadisco:
En primer lugar tu código está mal, deberías escribirlo así:
onClipEvent (enterFrame) {
fx = _root._xmouse;
velocidad = fx-_x;
_x = _x+velocidad/5;
}

Al MC ponle como nombre de instancia clip.
En el botón escribe éste código:
Primer botón:
on (press) {
clip.onEnterFrame = function(){
this._x +=(340-this._x)/5
}
}
Segundo botón:
on (press) {
clip.onEnterFrame = function(){
this._x +=(40-this._x)/5
}
}

Espero habere sido de ayuda.
__________________
Bandit.
Si no sabes estudia y si sabes enseña.
http://www.banditwebdesign.com/

Última edición por Bandit; 01/09/2006 a las 18:05