Ver Mensaje Individual
  #3 (permalink)  
Antiguo 12/12/2008, 12:44
kike2lucas
 
Fecha de Ingreso: octubre-2007
Mensajes: 91
Antigüedad: 16 años, 5 meses
Puntos: 1
Respuesta: Ayuda con efecto Zoom

Quizás este código pueda ayudarte

stop();
zoom_in.onPress = function() {
this.onEnterFrame = function() {
if (mapa._width<1500)/*acá poné el tamaño maximo que querés que se agrande el mapa */ {
mapa_mc._width = getProperty(mapa_mc, _width)*1.01;
mapa_mc._height = getProperty(mapa_mc, _height)*1.01;
mapa_mc.factor = mapa_mc.factor*1.01;
}
};
};
zoom_in.onRelease = zoom_in.onReleaseOutside=function () {
this.onEnterFrame = null;
};
zoom_out.onPress = function() {
this.onEnterFrame = function() {
if (mapa_mc._width>800)/*acá el mínimo*/ {
mapa_mc._width = getProperty(mapa_mc, _width)/1.01;
mapa_mc._height = getProperty(mapa_mc, _height)/1.01;
mapa_mc.factor = mapa_mc.factor/1.01;
}
};
};
zoom_out.onRelease = zoom_out.onReleaseOutside=function () {
this.onEnterFrame = null;
};


No sé si al no ser cuadrado puede llegar a darte algún problema, no lo creo