Yo tengo el mismo problema y no entiendo la explicacion de aca arriba, donde tengo que poner el codigo?? Soy novato, perdonen.
Tengo una pelicula que se amplia al 100% del explorador, y mi cliente me dijo que cuando ve la pagina en una resolucion menor a 1024x768 no le aparecen los scrolls, para poder desplazarse por la pagina.
Como puedo hacer para que mi pagina aparezcan los scroll si es que se achica el explorador a una dimension menor de 1024 x 768?? Esta hecha en as2
El codigo que tengo en el main del flash es el siguiente:
Código ActionScript :
Stage.scaleMode = "noscale";
//-----------------------
var StageWidth:Number = 1024;
var StageHeight:Number = 768;
function escalaFondo()
{
if (Stage.width > Stage.height) {
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.addListener(this);
this.onResize = escalaFondo;
escalaFondo();
//-----------------------
stop();
Y en el archivo html tengo lo siguiente:
Código :
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>:: Inox Ideas - Barandas de Acero Inoxidable ::</title><script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script><style type="text/css">html, body { height: 100%; margin: 0;}</style></head><body><script type="text/javascript">AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','100%','height','100%','movie','fullbrowser','quality','high' ); //end AC code</script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="100%" height="100%"> <param name="movie" value="fullbrowser.swf" /> <param name="quality" value="high" /></object></noscript></body></html>
Espero que me puedan ayudar!
Gracias
Lucas!