# Dynamically resizing flash window

**URL:** <https://forum.kirupa.com/t/dynamically-resizing-flash-window/209719>\
**Category:** flash\
**Created:** [December 11, 2006, 10:23pm UTC](https://forum.kirupa.com/t/dynamically-resizing-flash-window/209719 "2006-12-11T22:23:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![hknight](https://avatars.discourse-cdn.com/v4/letter/h/b4bc9f/32.png) [@hknight](https://forum.kirupa.com/u/hknight)\
**Post date:** [December 11, 2006, 10:23pm UTC](https://forum.kirupa.com/t/dynamically-resizing-flash-window/209719/1 "2006-12-11T22:23:10Z")

</div>

Hello,

I very much like this concept:  
[http://www.kirupa.com/developer/mx2004/swf/myfile.html](http://www.kirupa.com/developer/mx2004/swf/myfile.html)

which is described in detail here:  
[http://www.kirupa.com/developer/mx2004/fullscreen.htm](http://www.kirupa.com/developer/mx2004/fullscreen.htm)

In that example, the item looks fine if the window is 230 px by 250 px or larger. But if the window is too small then part of the item is not displayed.

I would like for it to work as it does with one exception:

If the window size is SMALLER than 230 px by 250 px then the flash object should dynamically become smaller, as it does here:  
[https://www.kirupa.com/developer/mx2004/swf/myfile.swf](https://www.kirupa.com/developer/mx2004/swf/myfile.swf)

I am sure this can be done with JS.

Any ideas how?

Thanks!
