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

centrar swf en html

Estas en el tema de centrar swf en html en el foro de Flash y Actionscript en Foros del Web. Estimados, tengo un html el cual al ingresar al mismo carga un swf a partir del código que dejo más abajo. Mi cuestión radica en ...
  #1 (permalink)  
Antiguo 13/04/2010, 16:03
 
Fecha de Ingreso: octubre-2009
Mensajes: 2
Antigüedad: 14 años, 6 meses
Puntos: 0
centrar swf en html

Estimados, tengo un html el cual al ingresar al mismo carga un swf a partir del código que dejo más abajo. Mi cuestión radica en cómo lograr que el swf carge para todos los formatos de pantalla siempre de forma centrada.
Podrían darme una mano por favor?

Muchas gracias.

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" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>mcl</title>
</head>
<body bgcolor="#111111">
<!--url's used in the movie-->
<!--text used in the movie-->
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="1360" height="900" id="mcl" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="mcl.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<embed src="mcl.swf" quality="high" bgcolor="#ffffff" width="1350" height="900" name="mcl" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
</body>
</html>
  #2 (permalink)  
Antiguo 13/04/2010, 16:25
 
Fecha de Ingreso: febrero-2010
Mensajes: 195
Antigüedad: 14 años, 2 meses
Puntos: 3
Sonrisa Respuesta: centrar swf en html

ponlo en un div mira:

Código HTML:
<!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" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>mcl</title>
</head>
<body bgcolor="#111111">
<div align="center">
  <!--url's used in the movie-->
  <!--text used in the movie-->
  <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="1360" height="900" id="mcl" align="middle">
    <param name="allowScriptAccess" value="sameDomain" />
    <param name="movie" value="mcl.swf" />
    <param name="quality" value="high" />
    <param name="bgcolor" value="#ffffff" />
    <embed src="mcl.swf" quality="high" bgcolor="#ffffff" width="1350" height="900" name="mcl" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
  </object>
</div>
</body>
</html> 
espero haberte ayudado cualquier duda pregunta

SALUDOS!
  #3 (permalink)  
Antiguo 13/04/2010, 16:29
Avatar de Bandit
Moderador
 
Fecha de Ingreso: julio-2003
Ubicación: Lima - Perú
Mensajes: 16.726
Antigüedad: 20 años, 10 meses
Puntos: 406
Respuesta: centrar swf en html

Hola incubomp:
Escribe así el HTML:
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" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>mcl</title>
</head>
<body bgcolor="#111111" topmargin= 0  leftmargin= 0 rightmargin= 0  bottommargin= 0>
<table width= 100%  border= 0  height= 100%  cellspacing= 0 >
<td valign= middle  > 
<div align= center > 
<!--url's used in the movie-->
<!--text used in the movie-->
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="1360" height="900" id="mcl" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="mcl.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<embed src="mcl.swf" quality="high" bgcolor="#ffffff" width="1350" height="900" name="mcl" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
</div>
</td>
</tr>
</table>
</body>
</html>
Espero haberte sido de ayuda.
__________________
Bandit.
Si no sabes estudia y si sabes enseña.
http://www.banditwebdesign.com/

Etiquetas: html, swf
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 19:02.