Bandit, fuiste muy amable al pasarme un fla donde al picarle a una foto esta crecia a cierto porcentaje en un lugar determinado.
El ejemplo que me mandaste es con dos fotos y me dijiste que dependiendo de las fotos que quisieramos deberiamos de cambiar el codigo.
Este es el codigo original:
Código HTML:
boton.onPress=function(){ efecto.onEnterFrame=function(){ this._x += (400 - this._x)/4; if (this._xscale<200){ this._xscale=this._yscale=this._xscale+10; }else{ delete this.onEnterFrame } } } boton.onRelease=function(){ efecto1.onEnterFrame=function(){ this._x += (112 - this._x)/4; if (this._xscale>100){ this._xscale=this._yscale=this._xscale-10 }else{ delete this.onEnterFrame } } } boton1.onPress=function(){ efecto1.onEnterFrame=function(){ this._x += (400 - this._x)/4; if (this._xscale<200){ this._xscale=this._yscale=this._xscale+10 }else{ delete this.onEnterFrame } } } boton1.onRelease=function(){ efecto.onEnterFrame=function(){ this._x += (5 - this._x)/4; if (this._xscale>100){ this._xscale=this._yscale=this._xscale-10 }else{ delete this.onEnterFrame } } }
Y pues a mi entender hice esto, pero funciona a medias:
Código HTML:
boton1.onPress=function(){ cuadro1.onEnterFrame=function(){ this._x += (300 - this._x)/3; if (this._xscale<400){ this._xscale=this._yscale=this._xscale+15; }else{ delete this.onEnterFrame } } } boton1.onRelease=function(){ cuadro2.onEnterFrame=function(){ this._x += (82 - this._x)/4; if (this._xscale>100){ this._xscale=this._yscale=this._xscale-10 }else{ delete this.onEnterFrame } } } boton1.onRelease=function(){ cuadro3.onEnterFrame=function(){ this._x += (148 - this._x)/4; if (this._xscale>100){ this._xscale=this._yscale=this._xscale-10 }else{ delete this.onEnterFrame } } } boton2.onPress=function(){ cuadro2.onEnterFrame=function(){ this._x += (300 - this._x)/3; if (this._xscale<400){ this._xscale=this._yscale=this._xscale+15; }else{ delete this.onEnterFrame } } } boton2.onRelease=function(){ cuadro1.onEnterFrame=function(){ this._x += (17 - this._x)/4; if (this._xscale>100){ this._xscale=this._yscale=this._xscale-10 }else{ delete this.onEnterFrame } } } boton2.onRelease=function(){ cuadro3.onEnterFrame=function(){ this._x += (148 - this._x)/4; if (this._xscale>100){ this._xscale=this._yscale=this._xscale-10 }else{ delete this.onEnterFrame } } } boton3.onPress=function(){ cuadro3.onEnterFrame=function(){ this._x += (300 - this._x)/3; if (this._xscale<400){ this._xscale=this._yscale=this._xscale+15; }else{ delete this.onEnterFrame } } } boton3.onRelease=function(){ cuadro1.onEnterFrame=function(){ this._x += (17 - this._x)/4; if (this._xscale>100){ this._xscale=this._yscale=this._xscale-10 }else{ delete this.onEnterFrame } } } boton3.onRelease=function(){ cuadro2.onEnterFrame=function(){ this._x += (82 - this._x)/4; if (this._xscale>100){ this._xscale=this._yscale=this._xscale-10 }else{ delete this.onEnterFrame } } }
Espero lo puedas checar y aqui te dejo el .fla, http://www.jalercom.com/Provisionales/home_2.zip
Gracias de antemano.
Zita Adame