# Making a SWF self aware of it's own size

**URL:** <https://forum.kirupa.com/t/making-a-swf-self-aware-of-its-own-size/213894>\
**Category:** Uncategorized\
**Created:** [January 24, 2007, 2:33am UTC](https://forum.kirupa.com/t/making-a-swf-self-aware-of-its-own-size/213894 "2007-01-24T02:33:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Psykloak1](https://avatars.discourse-cdn.com/v4/letter/p/7ab992/32.png) [@Psykloak1](https://forum.kirupa.com/u/Psykloak1)\
**Post date:** [January 24, 2007, 2:33am UTC](https://forum.kirupa.com/t/making-a-swf-self-aware-of-its-own-size/213894/1 "2007-01-24T02:33:35Z")

</div>

I was working on something or other today and a question came to me. Would it be possible to make a swf know how big it is, weather embedded into an HTML page, or running in flash player.

So pretty much, I want it to, if it’s playing in the stand-alone flash payer, if you stretch out the window vertically, it would know

The first thing I thought of was keeping track of \_root.\_xscale or \_root.\_width, but they didn’t work. Any ideas?
