Código :
// Coordenadas de Origen
orig_x = this._x;
orig_y = this._y;
// Profundidad Asignada
profundidad = 50;
// Ajustamos su posición Z en la escena
this.swapDepths(profundidad);
onEnterFrame = function() {
// Obtenemos la coordenada X de destino
dest_x = (((400 - _root._xmouse)/80) * profundidad) + orig_x;
// Obtenemos el incremento de movimiento en X
incr_x = (dest_x - this._x)/5;
// Ajustamos la posición en X
this._x += incr_x;
// Obtenemos la coordenada Y de destino
dest_y = (((600 - _root._ymouse)/300) * profundidad) + orig_y;
// Obtenemos el incremento de movimiento en Y
incr_y = (dest_y - this._y)/10;
// Ajustamos la posición en X
this._y += incr_y;
}
if((Math.abs(this._y-dest_y)<0.5) && (Math.abs(this._x-dest_x)<0.5)){
this.onEnterFrame=null
}ojala que alguien me pueda ayudar a quitar este movie clip de la escena principal, gracias
electrolux
