Ver Mensaje Individual
  #4 (permalink)  
Antiguo 26/07/2005, 05:30
Morgui
 
Fecha de Ingreso: diciembre-2004
Ubicación: La Rioja
Mensajes: 336
Antigüedad: 19 años, 4 meses
Puntos: 2
Ahora no tengo donde subirlo pero te pego el código completo que me ha quedado en el clip Symbol 1:

onClipEvent (load) {
xsc = 100;
ysc = 100;
factor = 5;
easing = 3;
zoom = 1;
_root.Clipdepelicula_target.map.easing = easing;
function scalmap (sc) {
if (zoom) {
_root.Clipdepelicula_target.map.xp = -_root._xmouse*(sc-1);
_root.Clipdepelicula_target.map.yp = -_root._ymouse*(sc-1);
zoom = 0;
} else {
_root.Clipdepelicula_target.map.xp = 0;
_root.Clipdepelicula_target.map.yp = 0;
zoom = 1;
}
_root.Clipdepelicula_target.map.xsc = sc*100;
_root.Clipdepelicula_target.map.ysc = sc*100;
}
function scalthis (factor) {
xsc = factor*100;
ysc = factor*100;
}
function rx () {
return _root._xmouse;
}
function ry () {
return _root._ymouse;
}

function autoscala (e) {
_xscale = _xscale+((xsc-_xscale)/e);
_yscale = _yscale+((ysc-_yscale)/e);
}
}
onClipEvent (mouseMove) {
_x = _root._xmouse;
_y = _root._ymouse;
if(!zoom){
_root.Clipdepelicula_target.map.xp = -_root._xmouse*((_root.Clipdepelicula_target.map.xs c-100)/100);
_root.Clipdepelicula_target.map.yp = -_root._ymouse*((_root.Clipdepelicula_target.map.ys c-100)/100);
}
}
onClipEvent (mouseDown) {
if (hitTest(_root._xmouse, _root._ymouse, false)) {
if (factor == 5) {
trace ("hacer zoom 5x");
scalmap(factor);
scalthis(factor);
factor = 1;
} else {
trace ("hacer zoom 1x");
scalmap(factor);
scalthis(factor);
factor = 5;
}
}
}
onClipEvent (enterFrame) {
autoscala(easing);
}

Prueba a copiarlo directamente encima del tuyo a ver... y me cuentas