Comunidad de diseño web y desarrollo en internet online

Como se hace este efecto :crap: ?

Citar            
MensajeEscrito el 12 Feb 2008 11:31 pm
No he podido, por mas que e intentado... como escalo automaticamente el tamaño del fondo de la foto antes de cargarla...?

Este es el ejemplo:
http://www.flashden.net/files/19546/index.html

estoy intentando esto... pero si cargo un mc no funciona!!!!;

Código :


attachMovie("contenedor","contenedor",_root.getNextHighestDepth());
attachMovie("fondo","fondo_mc",_root.getNextHighestDepth());

contenedor._yscale = random(90)+80;
contenedor._xscale = _yscale;

ancho = contenedor._width+40;
alto = contenedor._height+40;

fondo_mc._width = contenedor._width;
fondo_mc._height = contenedor._height;

fondo_mc._x = contenedor._x = Stage.width/2;
fondo_mc._y = contenedor._y = Stage.height/2;

contenedor.swapDepths(1000);

agrandarInt = setInterval(agrandar, 20);

function agrandar() {
   fondo_mc._width += (ancho-fondo_mc._width)/5;
   fondo_mc._height += (alto-fondo_mc._height)/5;

   if (fondo_mc._width>(ancho-1)) {
      clearInterval(agrandarInt);
   }
}



Gracias

Por Chevy

165 de clabLevel

1 tutorial

Genero:Masculino  

Ecuador

firefox
Citar            
MensajeEscrito el 13 Feb 2008 12:52 am
contenedor._xscale = _yscale; ?????
Quizás:
contenedor._xscale = contenedor._yscale;

Por Teseo

SWAT Team

1780 de clabLevel

14 tutoriales

Genero:Masculino   SWAT

firefox
Citar            
MensajeEscrito el 13 Feb 2008 02:49 pm
Gracias Tseo por tu respuesta

me pregunto si viste el ejemplo de la direccion que esta arriba...

Código :

contenedor._xscale = _yscale;??????


tienes razon, pero ese no seria el problema principal... como haria para que el fondo se reajuste al tamaño de la foto incluso antes de cargarlo.... lo he intentado pero no consigo que funcione...... :crap:!!!!

Gracias

Por Chevy

165 de clabLevel

1 tutorial

Genero:Masculino  

Ecuador

firefox

 

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