# Code for Changing Stage Dimensions?

**URL:** https://forum.kirupa.com/t/code-for-changing-stage-dimensions/259411
**Category:** flash
**Created:** [May 5, 2008, 4:11am UTC](https://forum.kirupa.com/t/code-for-changing-stage-dimensions/259411 "2008-05-05T04:11:15Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![YoungNastyMan](https://avatars.discourse-cdn.com/v4/letter/y/a6a055/32.png) [@YoungNastyMan](https://forum.kirupa.com/u/YoungNastyMan)
#### Post date: [May 5, 2008, 4:11am UTC](https://forum.kirupa.com/t/code-for-changing-stage-dimensions/259411/1 "2008-05-05T04:11:15Z")

</div>

Well, the title sums it up pretty well… Is there some action script I can use to adjust the actual dimensions (width and height) of the stage while my flash movie is running?

My project: I just got a mac mini and I’m currently learning how to make Mac Dashboard Widgets. Since I only know how to do flash - that’s what I’m using. Unfortunately, the mac dashboard does not support transparent backgrounds for swfs. Hence, it would be nice if I could have the actual stage dimensions change according to the dimensions of my movie clip (in my current project) - maybe this will create the illusion of a transparent background?

Thanks for all your answers.
