Por un lado tengo este codigo que me adapta una imagen de fondo al tamaño de stage sin distorsionar:
Stage.scaleMode = "noScale";
_root.fondo.loadMovie("fondo1.jpg");
StageWidth = 700;
StageHeight = 500;
//----------------------- ESCALAR FONDO
function escalaFondo(){
//reescalomos la imagen de fondo
if (Stage.width > Stage.height) {
// trace("horizr");
fondo._width = Stage.width;
fondo._yscale = fondo._xscale;
}else{
fondo._height = Stage.height;
fondo._xscale = fondo._yscale;
}
fondo._x = (StageWidth - fondo._width) / 2;
fondo._y = (StageHeight - fondo._height) / 2;
//Stage.removeListener(this);
}
Stage.addListener(this);
this.onResize = escalaFondo;
escalaFondo();
y por otro tengo que todo se me adapta al stage, pero la imagen se distorsiona
//comprobamos el tamaño inicial de la pantalla
Stage.scaleMode = "noScale";
fondo.fotoFondo.loadMovie("imagenes/imagen1.jpg");
campoTexto.selectable=true;
Stage.align = "TL";
/*la propiedad stage.align hace que nuestra película quede anclada arriba (top) y a la
izquierda (left), para el resto de opciones de anclaje usa la guía de referencia de AS */
var miListener:Object = new Object();
miListener.onResize = function() {
miTexto = "Tamaño del Stage: "+Stage.width+" x "+Stage.height;
//ajustamos la posición de la barra inferior segun el alto del Stage y el alto propio
barraInf._width = Stage.width;
barraInf._y = Stage.height-barraInf._height+1;
//ajustamos el alto del fondo
fondo._height = Stage.height;
fondo._width = Stage.width;
//ajustamos el alto y ancho campo de texto, los valores son ajustados al diseño
campoTexto._height = Stage.height-100;
campoTexto._width = Stage.width-135;
//ajustamos el menu con la brra inferior
contacto._y = Stage.height-(contacto._height+7.5);
clientes._y = Stage.height-(clientes._height+7.5);
galeria._y = Stage.height-(galeria._height+7.5);
separador._y = Stage.height-(separador._height+10);
};
Stage.addListener(miListener);
Yo creo que el problema viene por Stage.aling="TL", pero no se como resolverlo
Alguien me puede echar una mano
gracias[/b]