# Resize swf dynamically in AS3

**URL:** <https://forum.kirupa.com/t/resize-swf-dynamically-in-as3/283099>\
**Category:** flash\
**Created:** [March 2, 2009, 5:03pm UTC](https://forum.kirupa.com/t/resize-swf-dynamically-in-as3/283099 "2009-03-02T17:03:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mr\_Kikkoman](https://avatars.discourse-cdn.com/v4/letter/m/919ad9/32.png) [@Mr\_Kikkoman](https://forum.kirupa.com/u/Mr_Kikkoman)\
**Post date:** [March 2, 2009, 5:03pm UTC](https://forum.kirupa.com/t/resize-swf-dynamically-in-as3/283099/1 "2009-03-02T17:03:39Z")

</div>

Is there any way to resize the .swf dynamically in AS3? I’m creating an mp3 player with a collapsible playlist that’s embedded in an HTML page. The playlist might exceed the height I set it at…

One solution I thought of is just setting the array of songs in the html via swfobject then just calculating the height based on that.
