Ive sido capaz de integrar mi swf como un objeto html con su altura y anchura en relación con el tamaño de la ventana, que fue un paso. Ahora, quiero que para preservar la relación de aspecto, de modo que la altura es siempre relativa a la anchura. Sé que esto no es un foro de JavaScript o HTML, pero pensé que alguien de aquí debe haber querido probar esto en algún momento. Heres lo que he intentado que no funciona:
javascript
[CODE] ventana y #46; onresize = function ()
(
documento y #46; getElementById ( "containerA") & #46; estilo y #46; = anchura del documento y #46; getElementById ( "containerA") & #46; estilo y #46; height/20 + "px";
) [/ CODE]
html
[Code] <! DOCTYPE html PUBLIC "- / / W3C / / DTD XHTML 1 & #46, 0 Strict / / EN "" ">
<html xmlns = "" lang = "es" xml & #58; lang = "ES">
<head>
<title> SWFObject - Paso 1 </ title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<style type="text/css" media="screen">
el cuerpo del HTML,, #containerA (width: #58, 100%; altura y #58, 100%;)
body (margin: #58, 0; padding: #58, 0; desbordamiento & #58; hidden;)
</ style>
<style type = "text / javascript" src = "cambiar el tamaño y #46; js "> </ style>
</ head>
<body>
<div id="containerA">
<objeto classid = "clsid: #58; D27CDB6E-AE6D-11cf-96B8-444553540000 "width =" 100% "height =" 100% ">
<param = "movie nombre" value = "yankeeScreenMenu & #46; swf "/>
<!--& #91; si! IE & #93 ;>-->
<object type = "application / x-shockwave-flash" data = "yankeeScreenMenu & #46; swf "width =" 100% "height =" 100% ">
<param name="quality" value="autohigh" />
<param name="menu" value="false" />
<!--<!& #91; endif & <p> Contenido alternativo </ p>
<!--& #91; si! IE & #93 ;>-->
</ object>
<!--<!& #91; endif & #93; ->
</ object>
</ div>
</ body>
</ html> [/ code]