Comunidad de diseño web y desarrollo en internet online

Efecto de Imagenes

Citar            
MensajeEscrito el 02 Ago 2006 08:20 pm
Hola a tod@s como dice mi nick soy novata :oops: en esto de flash sin embargo me han servido de mucho algunos de los tutoriales que se encuentran aqui.

Estoy diseñando una pagina de intercambio turistico y desearia saber como se hace el efecto de la pagina www.vistamarhotel.com (denle click en la opcion ESPAÑOL). No es simplemente un banner con imagenes alternas sino que trae el efecto que se van desdoblando. Quisiera que alquien me ayude please. :crap:

Por novata

1 de clabLevel



 

msie
Citar            
MensajeEscrito el 03 Ago 2006 12:48 am
El efecto ese es muy fácil... de entrada es un una imagen grande que se despalaza a traves de una interpolación de movimiento bajo una mascara. Luego tiene una serie de movideclips con una animación de un cuadrado blanco que va de alpha 100 a 0.

Por Zguillez

BOFH

10744 de clabLevel

85 tutoriales
17 articulos
3 ejemplos

Genero:Masculino   Bastard Operators From Hell Héroes Team Cristalab Editores

BCN

firefox
Citar            
MensajeEscrito el 03 Ago 2006 12:58 am
El código que se usa para el efecto de desdoblado es el siguiente:
En el primer fotograma colocas:

if (_framesloaded >= _totalframes)
{
gotoAndPlay(2);
}
else
{
gotoAndPlay(1);
}

En el segundo fotograma para el efecto es: (Asi para cada imagen):

function fadeOut(startboxnr, speed)
{
fadeMC(startboxnr, speed);
} // End of the function
function fadeMC(mcnr, speed)
{
this["box" + mcnr].onEnterFrame = function ()
{
this._alpha = this._alpha - speed;
if (smoothness >= this._alpha)
{
this.onEnterFrame = null;
continueFade(this, speed);
mcnr = mcnr + 1;
fadeOut(mcnr, speed);
} // end if
};
} // End of the function
function continueFade(mc, speed)
{
mc.onEnterFrame = function ()
{
this._alpha = this._alpha - speed;
if (this._alpha <= 0)
{
delete this["onEnterFrame"];
} // end if
};
} // End of the function
xspacing = box._width;
yspacing = box._height;
depth = 0;
box._visible = 0;
smoothness = 900;
amH = Math.ceil(image._width / box._width);
amV = Math.ceil(image._height / box._height);
border._height = image._height + 1;
border._width = image._width + 1;
border._x = image._x - 0.500000;
border._y = image._y - 0.500000;
for (i = 0; i < amH; i++)
{
var k = 0;
while (k < amV)
{
box.duplicateMovieClip("box" + depth, depth);
cur = this["box" + depth];
cur._x = image._x + xspacing * i;
cur._y = image._y + yspacing * k;
depth++;
k++;
} // end while
} // end of for
fadeOut(0, 5);

Por luisgmo

5 de clabLevel



Genero:Masculino  

firefox
Citar            
MensajeEscrito el 03 Ago 2006 01:22 am
¿swf decompiler? :roll:

Por Zguillez

BOFH

10744 de clabLevel

85 tutoriales
17 articulos
3 ejemplos

Genero:Masculino   Bastard Operators From Hell Héroes Team Cristalab Editores

BCN

firefox

 

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