# Resizing the stage in a swf

**URL:** <https://forum.kirupa.com/t/resizing-the-stage-in-a-swf/308343>\
**Category:** flash\
**Created:** [April 21, 2010, 9:00am UTC](https://forum.kirupa.com/t/resizing-the-stage-in-a-swf/308343 "2010-04-21T09:00:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![adavies](https://avatars.discourse-cdn.com/v4/letter/a/958977/32.png) [@adavies](https://forum.kirupa.com/u/adavies)\
**Post date:** [April 21, 2010, 9:00am UTC](https://forum.kirupa.com/t/resizing-the-stage-in-a-swf/308343/1 "2010-04-21T09:00:36Z")

</div>

Hi all, I’m making an ad, which starts off as 928x300, and after a few seconds, should shrink down to 928x100 (aligned to the top), and I want the web content underneath to be able to go up with it. Is this actually possible? Anyway, the bit of actionscript I’ve culled from previous page-peel ads (which operate in sort of the same way) are

```auto
getURL("javascript:resizeSWF(928,100)");

```

or

```auto
getURL("javascript:resizeobj('billboard',928,100)");

```

Which I assumed would occur on the top frame (in its own layer) and at the same time I want the swf to resize itself, but neither seem to work.

I’m using AS2, on CS4 (although I have CS3 as well). And please note, I have very rudimentary knowledge of actionscript, so bear with me if I don’t immediately understand an answer 🙂

Thanks in advance! x
