Ver Mensaje Individual
  #3 (permalink)  
Antiguo 03/10/2011, 21:27
Kingjoseph
 
Fecha de Ingreso: abril-2011
Mensajes: 14
Antigüedad: 13 años
Puntos: 2
Respuesta: Paneo en flash (Diferente)

es AS2. El código que tengo en el movie clip donde están las imágenes es este.


onClipEvent (load) {
tarY = 133;
tarX = 270;
rate = 0.2,6;
}
onClipEvent (enterFrame) {
this._x += rate*(tarX-this._x);
this._y += rate*(tarY-this._y);
}


y en los botones es este

on (release) {
_root.pan.tarX = 270;
_root.pan.tarY = 133;
}