Éste es el código utilizado en el fotograma:
function mover(x,y, aceleracion) {
_root.show_mc.mapa_mc.onEnterFrame = function() {
this._x += (x-this._x)/aceleracion;
this._y += (y-this._y)/aceleracion;
if (Math.abs(x-this._x)<0.5 && Math.abs(y-this._y)<0.5 ) {
this._x = x;
this._y = y;
delete this.onEnterFrame;
}
};
}
Donde sohw_mc es el clip principal, y mapa.mc la imagen
y éste es el AS asignado a show_mc:
onClipEvent (mouseMove){
if (this.hitTest(_root._xmouse, _root._ymouse, true)){
_root.mover( -((mapa_mc._width-showinside_mc._width) /showinside_mc._width) * _xmouse,-((mapa_mc._height -showinside_mc._height) /showinside_mc._height) * _ymouse,33);
}
}
Muchas gracias, espero
