# Fabridge and Flex Component Kit, autoscale flash object?

**URL:** <https://forum.kirupa.com/t/fabridge-and-flex-component-kit-autoscale-flash-object/234203>\
**Category:** Uncategorized\
**Created:** [July 31, 2007, 12:40pm UTC](https://forum.kirupa.com/t/fabridge-and-flex-component-kit-autoscale-flash-object/234203 "2007-07-31T12:40:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![thor918](https://avatars.discourse-cdn.com/v4/letter/t/0ea827/32.png) [@thor918](https://forum.kirupa.com/u/thor918)\
**Post date:** [July 31, 2007, 12:40pm UTC](https://forum.kirupa.com/t/fabridge-and-flex-component-kit-autoscale-flash-object/234203/1 "2007-07-31T12:40:13Z")

</div>

Hi,  
I have a html page where I have put my flex object, with height=“400” width=“400” as you see below…

```auto
 <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_Component_Kit_for_Flash_CS3)  
[http://labs.adobe.com/wiki/index.php/Flex\_Framework:FABridge](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! :ear:
