Comunidad de diseño web y desarrollo en internet online

Galeria de img. con LOADMOVIE. Se puede ampliar un poco?

Citar            
MensajeEscrito el 30 Ago 2006 09:16 pm
Hola comunidad.. bueno este es mi primer post. En esto no soy un experto, y desde hace algun tiempo estoy buscando la manera de que esta galeria de imagenes con LOADMOVIE que esta publicada en los tutoriales, carge imagenes de distintos tamaños. En este caso jpg.

Desde hace mucho que uso esta galeriade imagenes, pero ahora quiero que esta misma Contenga variables (no se cuales) para que cargue fotos de distintos tamaños, 640x480 800x600 1024x780, etc etc.... Por favor alquien que me de algunas ideas....

Muchas gracias!!!!

Por javo_arg

1 de clabLevel



 

msie
Citar            
MensajeEscrito el 30 Ago 2006 09:28 pm
Pues puedes hacerlo con HTML dentro de flash. Con <img src=""> puedes especificar width y height y cambiar los valores desde as.

Asi que a ver el tuto!

Por Lunatic Lycanthrop

Claber

1203 de clabLevel

7 tutoriales

1 ejemplo

Genero:Masculino  

The dark places where wolves access internet with 46,6 kbps

firefox
Citar            
MensajeEscrito el 30 Ago 2006 10:07 pm
Este es otro codigo que uso como reproductor de foto, si se quiere usar ese termino, las variables para lograr que se vena fotos de distinto tamaño sin que se rompan o se corten? que tengo que usar?? perdon por el poco conocimiento.
es conocido!!

Código :

//initialize variables and properties
square._alpha = 0;
whichPic = 1;
square._width = 800
square._height = 600;
//initiate change to new image when buttons are clicked
next.onPress = function() {
   if (whichPic<150 && !fadeIn && !fadeOut) {
      fadeOut = true;
      whichpic++;
      input = whichPic;
   }
};
back.onPress = function() {
   if (whichPic>1 && !fadeIn && !fadeOut) {
      fadeOut = true;
      whichpic--;
      input = whichPic;
   }
};
_root.onEnterFrame = function() {
   // when a new Photo is selected, fade out, load new image, and fade in
   if (square._alpha>10 && fadeOut) {
      square._alpha -= 10;
   }
   if (square._alpha<10) {
      loadMovie("..swf/images/album1/image"+whichPic+".jpg", "square");
      fadeOut = false;
      fadeIn = true;
   }
   if (square._alpha<100 && fadeIn && !fadeOut) {
      square._alpha += 10;
   } else {
      fadeIn = false;
   }
   // limit input field
   if (input>150) {
      input = 150;
   }
   // initiate change to new image when Enter key is pressed
   if (Key.isDown(Key.ENTER)) {
      fadeOut = true;
      whichpic = input;
   }
};
// if a number is entered in the input field but Enter is not pressed, change 
// back to current Photo number when clicking anywhere else
inputField.onKillFocus = function() {
   input = whichPic;
};


[ mx ] usa las etiquetas code para postear tu codigo

Por javo_arg

1 de clabLevel



 

msie

 

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