Comunidad de diseño web y desarrollo en internet online

galeria flash

Citar            
MensajeEscrito el 21 Sep 2008 12:58 am
Hola, esta es la primera vez que posteo en Critalab. Me mandaron hacer una galeria con thumbs en la cual tengo 10 thumbs que se llaman "chi1", "chi2", "chi3", etc, donde aparecen las imagenes chicas encima de ellos 10 botones llamados "bot1", "bot2", "bot3", etc, que son las que al hacer click se tendrian que ver las grandes y un visor llamado "ver" donde aparecen mis imagenes grandes, mi codigo es este:

Código :

for(i=1;i<22;i++){
this["chi" + i].loadMovie("estructura/imagenes/grafica/stikers/chicas/"+ i + ".jpg");
}
img=["bot"+i];
for(i=1;i<22;i++){
this["bot"+i].onRelease = function() {
if ( i < 21)
i=1;
ver.loadMovie("estructura/imagenes/grafica/stikers/grandes/"+ img + ".jpg");
}}


no se como hacer que cuando haga click en el "bot1" me aparezca la imagen 1.jpg en el mc "ver", en el "bot2" me aparezca la imagen 2.jpg y asi secesivamente.
Gracias de antemano.

Por nicolas_jnm

1 de clabLevel



 

firefox
Citar            
MensajeEscrito el 21 Sep 2008 03:21 am

Código :

for(i=1;i<22;i++){
   _root.createEmptyMovieClip("ver", this.getNextHighestDepth());
   ver._x=Stage.height/2;
   ver._y=300;
   this["chi"+i].numero = i
   this["chi"+i].onRelease=function(){
   loader.loadMovie("estructura/imagenes/grafica/stikers/chicas+[this.numero]+".jpg");
   }
}

salu2 y avisame si funciona

eso suponiendo que tenes en el escenario botones llamados chi1 chi2 y asi sucesivamente

Por ironeric23

Claber

407 de clabLevel



Genero:Femenino  

mozilla
Citar            
MensajeEscrito el 21 Sep 2008 02:58 pm
Me funcionó eso era lo que necesitaba, muchas gracias ironeric23 te tengo en cuenta. Cualquier cosa aviame

Por nicolas_jnm

1 de clabLevel



 

firefox
Citar            
MensajeEscrito el 21 Sep 2008 06:10 pm
:wink: saludos

Por ironeric23

Claber

407 de clabLevel



Genero:Femenino  

mozilla

 

Cristalab BabyBlue v4 + V4 © 2011 Cristalab
Powered by ClabEngines v4, HTML5, love and ponies.