# Dynamically resize flash?

**URL:** <https://forum.kirupa.com/t/dynamically-resize-flash/184747>\
**Category:** Uncategorized\
**Created:** [April 7, 2006, 1:03pm UTC](https://forum.kirupa.com/t/dynamically-resize-flash/184747 "2006-04-07T13:03:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![stevek1977](https://avatars.discourse-cdn.com/v4/letter/s/7bcc69/32.png) [@stevek1977](https://forum.kirupa.com/u/stevek1977)\
**Post date:** [April 7, 2006, 1:03pm UTC](https://forum.kirupa.com/t/dynamically-resize-flash/184747/1 "2006-04-07T13:03:42Z")

</div>

is there a way to dynamically resize document dimensions via actionscript?

scenario: i have downloaded the xml photogallery tutorial ([http://www.kirupa.com/developer/mx2004/xml\_flash\_photogallery.htm](http://www.kirupa.com/developer/mx2004/xml_flash_photogallery.htm)) and i am trying to determine if there is a way to dynamically resize the flash file when an image dimensions are larger than the document dimensions.

(i figured that i would have to post my embed tag without height and width to make this work - and that seems to work when testing.)

i appreciate any and all feedback.
