Hi
I made an SWF that loads data from a database and dispays the results
as a vertical list; therefore, the height of the swf varies depending
on the stored data.
Whitout using SWFObject, I have no problems embedding the SWF. It's
height varies depending on how much content it's displaying. This is
my desired behaviour.
When I try to dynamically insert said SWF in my pages with swfobject,
I can only see it if I specify a fixed height. If I try using
width="100%", the swf dissapears.
How can I tell SWFObject to use the swf's original height? this is my
relevant code (all of it is inside the <body>):
<script type="text/javascript">
var flashvars = {};
var params = {};
params.play = "true";
params.loop = "false";
params.quality = "high";
params.wmode = "transparent";
params.allowscriptaccess = "sameDomain";
var attributes = {};
attributes.id = "MapaEstrategico";
attributes.name = "MapaEstrategico";
attributes.align = "middle";
swfobject.embedSWF("MapaEstrategico.swf", "mEstrategico", "768",
"100%", "9.0.28", "expressInstall.swf", flashvars, params,
attributes);
</script>
(...)
<div id="mEstrategico" style="width: 764px; margin: 1px auto;"
align="center"></div>