# Noob: how to get SWF pixel dimensions?

**URL:** <https://forum.kirupa.com/t/noob-how-to-get-swf-pixel-dimensions/309626>\
**Category:** flash\
**Created:** [May 20, 2010, 2:58am UTC](https://forum.kirupa.com/t/noob-how-to-get-swf-pixel-dimensions/309626 "2010-05-20T02:58:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![NeoDreamer](https://avatars.discourse-cdn.com/v4/letter/n/ccd318/32.png) [@NeoDreamer](https://forum.kirupa.com/u/NeoDreamer)\
**Post date:** [May 20, 2010, 2:58am UTC](https://forum.kirupa.com/t/noob-how-to-get-swf-pixel-dimensions/309626/1 "2010-05-20T02:58:02Z")

</div>

How do I programatically get the pixel dimensions of my SWF. I tried using _stage.width_ and _stage.height_, but this seems to be a tight bounding box on all the objects in the video, not the actual viewing area. I also want these pixel dimensions to be accurate as javascript dynamically resizes this SWF.
