Ver Mensaje Individual
  #2 (permalink)  
Antiguo 21/02/2006, 07:39
Avatar de pulento
pulento
 
Fecha de Ingreso: noviembre-2002
Ubicación: En un pequeño, helado, obscuro reino... llamado Dinamarca.
Mensajes: 1.852
Antigüedad: 21 años, 5 meses
Puntos: 1
supongamos que tienes un objeto y un boton en la raiz (_root)
Pon este code en un frame aparte (no en el boton)

code ------->

_root.tuBoton.onPress = function(){
this.onEnterFrame = function(){
_root.tuObjeto._x += (this._x - _root.tuObjeto._x)/4;
_root.tuObjeto._y += (this._y - _root.tuObjeto._y)/4;
}}


Salu2

.