Ver Mensaje Individual
  #2 (permalink)  
Antiguo 18/06/2008, 04:14
Avatar de sirguy
sirguy
 
Fecha de Ingreso: septiembre-2006
Ubicación: Mallorca
Mensajes: 959
Antigüedad: 17 años, 6 meses
Puntos: 12
Respuesta: Ayudar a enteder codigo

Te bajas el ejemplo que te da en la web, haces doble click sobre los elementos y puedes ver dentro del clip un fotograma vacío, simplemente le metes este código:

orig_x = this._x;
orig_y = this._y;
profundidad = 54;
this.swapDepths(profundidad);
onEnterFrame = function ()
{
dest_x = (210 - _root._xmouse) / 210 * profundidad + orig_x;
incr_x = (dest_x - this._x) / 10;
this._x = this._x + incr_x;
dest_y = (130 - _root._ymouse) / 130 * profundidad + orig_y;
incr_y = (dest_y - this._y) / 10;
this._y = this._y + incr_y;
};

Cambia la variable profundidad de valor para que quede a tu gusto.
__________________
Chanante!