estoy utilizando el codigo de aqui AH para llamar el fondo a pantalla completa. Utilizo el codigo que coloco abajo.
Todo es perfecto hasta que se redimesiona, es decir, los botones perfectos, el logo tambien, pero el contenido_mc no parece tomar en cuenta este efecto, es decir, al estirar para probar se queda donde esta y no hace nada como los botones que se van moviendo un poquito.
La cosa rara esta en que en el boton Styles cargo el catalogo.swf y en ese contenido_mc y este contiene una galeria de fotos de flashden
que al mover el explorador si hace un buen resize.
Será que a todos los swf que se van a cargar en ese contenido_mc tambien hay que hacerles diagramacion liquida? o me equivoco?
Código :
sstop();
Stage.scaleMode = "noScale";
Stage.align = "TL"
var HPositioner:Number = (Math.round((Stage.width - 1000) / 2));
var VPositioner:Number = (Math.round((Stage.height - 600) / 2));
function HPositionCubes () {
if (Stage.width >= 1001) {
var HPositioner:Number = (Math.round((Stage.width - 1000) /2));
setProperty(contenido_mc, _x, 0);
setProperty(barraInf, _x, 0);
barraInf._width = Stage.width
setProperty(logo, _x, 10);
setProperty(inicio, _x, 250);
setProperty(catalogo, _x, 300);
setProperty(stores, _x, 360);
setProperty(contactos, _x, 420);
} else {
setProperty(contenido_mc, _x, 0);
setProperty(barraInf, _x, 0);
barraInf._width = Stage.width
setProperty(logo, _x, 10);
setProperty(inicio, _x, 250);
setProperty(catalogo, _x, 300);
setProperty(stores, _x, 360);
setProperty(contactos, _x, 420);
}
}
function VPositionCubes () {
if (Stage.height >= 601) {
var VPositioner:Number = (Math.round((Stage.height - 600) /2));
setProperty(contenido_mc, _y, 0);
setProperty(barraInf, _y, Stage.height - barraInf._height);
setProperty(logo, _y, Stage.height - 55);
setProperty(inicio, _y, Stage.height - 43);
setProperty(catalogo, _y, Stage.height - 33);
setProperty(stores, _y, Stage.height - 33);
setProperty(contactos, _y, Stage.height - 33);
} else {
setProperty(contenido_mc, _y, 0);
setProperty(barraInf, _y, Stage.height - barraInf._height);
setProperty(logo, _y, Stage.height - 55);
setProperty(inicio, _y, Stage.height - 43);
setProperty(catalogo, _y, Stage.height - 33);
setProperty(stores, _y, Stage.height - 33);
setProperty(contactos, _y, Stage.height - 33);
}
}
HPositionCubes();
VPositionCubes();
var resizeListener:Object = new Object();
Stage.addListener(resizeListener);
resizeListener.onResize = function () {
HPositionCubes();
VPositionCubes();
};
