Ver Mensaje Individual
  #2 (permalink)  
Antiguo 28/12/2010, 06:09
noa_shinta
 
Fecha de Ingreso: septiembre-2010
Mensajes: 57
Antigüedad: 13 años, 7 meses
Puntos: 0
Respuesta: zoom, pageflip

hola, si crea un MC con el nombre imagen y en un fotograma aparte inserta este codigo:

zoomin = function () {
_root.imagen.onEnterFrame = function() {
this._xscale -= (this._xscale-(150))*0.3;
this._yscale -= (this._yscale-(150))*0.3;
};
};
zoomout = function () {
_root.imagen.onEnterFrame = function() {
this._xscale -= (this._xscale-(100))*0.3;
this._yscale -= (this._yscale-(100))*0.3;
};
};
var contador:Number = 0;
imagen.onRelease = function() {
contador++;
var resto:Number = contador%2;
if (resto != 0) {
zoomin();
} else {
zoomout();
}
};