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
