# Change Stage and/or browser height dynamically

**URL:** <https://forum.kirupa.com/t/change-stage-and-or-browser-height-dynamically/263517>\
**Category:** flash\
**Created:** [June 16, 2008, 8:15pm UTC](https://forum.kirupa.com/t/change-stage-and-or-browser-height-dynamically/263517 "2008-06-16T20:15:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mr\_n00](https://avatars.discourse-cdn.com/v4/letter/m/c57346/32.png) [@mr\_n00](https://forum.kirupa.com/u/mr_n00)\
**Post date:** [June 16, 2008, 8:15pm UTC](https://forum.kirupa.com/t/change-stage-and-or-browser-height-dynamically/263517/1 "2008-06-16T20:15:24Z")

</div>

hi, folks,

I have this website. There are 3 pages with different heights. I am loading external swf in a main movie to save loading time.  
But i ran into a issue. One page has the height of 1900px and the other 2 have 650px (give-or-take), in other words, 3 times the size of the first one.

I read in Flash/ActionScript specs that we cannot set the height of the stage thru AS or alike. So i had to set the main stage height based on the bigger which gives me a massive scroll bar on the other ones.

Does anyone know how to solve this? I heard you could do it with JavaScript, but how? Any tutorials, comments, light, insight? Anything?

thanks for your time and help,

mr\_n00

---

<div class="post-metadata">

**Author:** ![hobbbz](https://avatars.discourse-cdn.com/v4/letter/h/54ee81/32.png) [@hobbbz](https://forum.kirupa.com/u/hobbbz)\
**Post date:** [June 16, 2008, 9:15pm UTC](https://forum.kirupa.com/t/change-stage-and-or-browser-height-dynamically/263517/2 "2008-06-16T21:15:04Z")

</div>

[http://hossgifford.com/downloads.htm](http://hossgifford.com/downloads.htm)

---

<div class="post-metadata">

**Author:** ![mr\_n00](https://avatars.discourse-cdn.com/v4/letter/m/c57346/32.png) [@mr\_n00](https://forum.kirupa.com/u/mr_n00)\
**Post date:** [June 17, 2008, 8:02pm UTC](https://forum.kirupa.com/t/change-stage-and-or-browser-height-dynamically/263517/3 "2008-06-17T20:02:02Z")

</div>

yo, man…  
thanks a lot for the reply…  
but, i checked out this code, and it’s A.S. 2.0 and, for my bad luck, i’m one of those guys that don’t understand A.S2. I started my codign life in as.3… i knda understand, but since it’s based on a huge class (as file) i don’t know how to re-write to as3…

but again, thankx a lot!  
😉

---

<div class="post-metadata">

**Author:** ![Digitalosophy](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/digitalosophy/32/1114_2.png) [@Digitalosophy](https://forum.kirupa.com/u/Digitalosophy)\
**Post date:** [June 17, 2008, 8:17pm UTC](https://forum.kirupa.com/t/change-stage-and-or-browser-height-dynamically/263517/4 "2008-06-17T20:17:11Z")

</div>

Look up ExternalInterface in Flash’s help it has an example on how to communicate with js. Then all you have to do is change the width and height properties in the embed tag.
