Hi,
I have a html page where I have put my flex object, with height=“400” width=“400” as you see below…
<script type="text/javascript" charset="utf-8">
document.write('<object id="flexApp" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,5,0,0" height="400" width="400">');
document.write('<param name="flashvars" value="bridgeName=example"/>');
document.write('<param name="src" value="app.swf"/>');
document.write('<embed name="flexApp" pluginspage="http://www.macromedia.com/go/getflashplayer" src="app.swf" height="400" width="400" flashvars="bridgeName=example"/>');
document.write('</object>');
</script>
in this flex object I have put an flash component (using the Flex Component Kit). All this works good. but what I do want to know is how can one autoscal the flash object so that it does not go over height=“400” width=“400” ? I don’t want any scrollbars!
http://labs.adobe.com/wiki/index.php/Flex_Component_Kit_for_Flash_CS3
http://labs.adobe.com/wiki/index.php/Flex_Framework:FABridge
the best would be if the flash object would automaticly scale down to fit the max size of the flex object witch is the parent container in my setup.
Thanks for your comments!