Foros del Web » Creando para Internet » Flash y Actionscript »

Crecer imagenes a cierto % !!! (BANDIT)

Estas en el tema de Crecer imagenes a cierto % !!! (BANDIT) en el foro de Flash y Actionscript en Foros del Web. Hola: Bandit, fuiste muy amable al pasarme un fla donde al picarle a una foto esta crecia a cierto porcentaje en un lugar determinado. El ...
  #1 (permalink)  
Antiguo 19/09/2005, 12:52
 
Fecha de Ingreso: octubre-2004
Ubicación: Edo. de México
Mensajes: 115
Antigüedad: 19 años, 6 meses
Puntos: 0
Pregunta Crecer imagenes a cierto % !!! (BANDIT)

Hola:

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
  #2 (permalink)  
Antiguo 20/09/2005, 14:37
 
Fecha de Ingreso: octubre-2004
Ubicación: Edo. de México
Mensajes: 115
Antigüedad: 19 años, 6 meses
Puntos: 0
Creo que bandit esta de vacaciones.

Alguien mas me podria ayudar????
  #3 (permalink)  
Antiguo 22/09/2005, 16:07
 
Fecha de Ingreso: octubre-2004
Ubicación: Edo. de México
Mensajes: 115
Antigüedad: 19 años, 6 meses
Puntos: 0
Alguien quien sea!!!!!!

Porfavoooooooooooooor.
  #4 (permalink)  
Antiguo 28/09/2005, 11:18
 
Fecha de Ingreso: octubre-2004
Ubicación: Edo. de México
Mensajes: 115
Antigüedad: 19 años, 6 meses
Puntos: 0
Mmmmmm, Holaaaaaaaaaaaaaaaaaaaaaaaaaaa.

Por favor ayudenme.

O de plano diganme que no se puede.

Bye
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 11:01.