# SWF Stage size in browser

**URL:** <https://forum.kirupa.com/t/swf-stage-size-in-browser/316481>\
**Category:** flash\
**Created:** [November 23, 2010, 4:26am UTC](https://forum.kirupa.com/t/swf-stage-size-in-browser/316481 "2010-11-23T04:26:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kleelof](https://avatars.discourse-cdn.com/v4/letter/k/b77776/32.png) [@kleelof](https://forum.kirupa.com/u/kleelof)\
**Post date:** [November 23, 2010, 4:26am UTC](https://forum.kirupa.com/t/swf-stage-size-in-browser/316481/1 "2010-11-23T04:26:22Z")

</div>

Hello,

I am writing an app that, when loaded byt the HTML, could be any size. For example, using SWFObject and the following line:

swfobject.embedSWF(“Untitled-1.swf”, “SMHSWF”, “500”, “500”, “10”, “expressInstall.swf”, null, params);

The problem is I’m having some difficulty finding the size once the SWF is loaded. I’ve tried the following:

stage.width/height  
stage.stageWidth/stageHeigth  
I tried a AddedToStage event

Different combinations return either 0 or the original size when the SWF was compiled.

take care,  
lee
