Foros del Web » Creando para Internet » Flash y Actionscript »

Flash al 100%

Estas en el tema de Flash al 100% en el foro de Flash y Actionscript en Foros del Web. Hola, tengo un problema, quiero que mi pelicula me ocupe toda la pantalla y se adecue al navegador o resolucion. Eh revisado y no me ...
  #1 (permalink)  
Antiguo 15/11/2008, 13:27
Avatar de lrecchia  
Fecha de Ingreso: diciembre-2005
Mensajes: 214
Antigüedad: 18 años, 4 meses
Puntos: 2
Flash al 100%

Hola, tengo un problema, quiero que mi pelicula me ocupe toda la pantalla y se adecue al navegador o resolucion. Eh revisado y no me salen las ayudas que encontre. Lo que estoy haciendo yo es meter mi swf en el html, como cualquier otro, pero luego le cambio las medidas y le pongo 100% a todo, pero me lo muestra chiquito, no se cual sera el problema. Tengo que hacerle algo al flash ademas?
Si alguien me puede ayudar por favor.
Graciass
  #2 (permalink)  
Antiguo 16/11/2008, 15:19
 
Fecha de Ingreso: octubre-2008
Mensajes: 13
Antigüedad: 15 años, 6 meses
Puntos: 0
Respuesta: Flash al 100%

Hola que tal !!

Mira, yo no se mucho d ecodigos pero tengo un ejemplo que usa este codigo en el primer frame:

//set stage for FBF
Stage.align = "TL";
Stage.scaleMode = "noScale";


//define dynamic aspect ratios
picHeight = new Object ();
picHeight = pic._height / pic._width;

picWidth = new Object ();
picWidth = pic._width / pic._height;






//conditional statement to account for various initial browswer sizes and proportions

if ((Stage.height / Stage.width) < picHeight) {
pic._width = Stage.width;
pic._height = picHeight * pic._width;
} else {
pic._height = Stage.height;
pic._width = picWidth * pic._height;
};


//center picture on stage
pic._x = Stage.width / 2;
pic._y = Stage.height / 2;



// create listener
sizeListener = new Object();

// make listener change picture size and center picture on browser resize
sizeListener.onResize = function() {

if ((Stage.height / Stage.width) < picHeight) {

pic._width = Stage.width;
pic._height = picHeight * pic._width;
} else {
pic._height = Stage.height;
pic._width = picWidth * pic._height;
};


pic._x = Stage.width / 2;
pic._y = Stage.height / 2;

}

//add listener to stage
Stage.addListener(sizeListener);


Depues a tu pelicula le tienes que publicar en 100%, osea te vas a File/Publish Settings y ally le das a la pestaña de HTML y en Height y Weight le pones en porcentajes y le agreagas 100 a cada uno.

Trata y veras !!

Slaudos !!
  #3 (permalink)  
Antiguo 16/11/2008, 18:22
Avatar de lrecchia  
Fecha de Ingreso: diciembre-2005
Mensajes: 214
Antigüedad: 18 años, 4 meses
Puntos: 2
Respuesta: Flash al 100%

Genial!!, voy a probar, graciasss
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 09:51.