On 6/30/11 4:40 PM, Eric E. Dolecki wrote:
document.getElementById("divName").style.height =<valPassedByFlash>
You can even do that completely from within flash:
function onResizeHandler(event:Event):void {
if (ExternalInterface.available)
ExternalInterface.call("function(){document.getElementById('divID').style.height
= '" + stage.stageHeight + "px';}");
}
stage.addEventListener(Event.RESIZE, onResizeHandler); // I think
That requires you have your div setup as the container of your flash
content, the flash content set with height="100%, allowScriptAccess set
to a value that allows flash to call JavaScript (like "samedomain" or
"always"), and your scalemode set in a way that will no scale your
content in appropriately ("noscale" is the easiest option to work with
here).
<div id="divID" style="height: 200px"><object height="100%"
....>...</object></div>
Kevin N.
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders