# Browser scaling - how to get original dimensions

**URL:** https://forum.kirupa.com/t/browser-scaling-how-to-get-original-dimensions/275201
**Category:** flash
**Created:** [November 11, 2008, 5:13am UTC](https://forum.kirupa.com/t/browser-scaling-how-to-get-original-dimensions/275201 "2008-11-11T05:13:30Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![jontyc](https://avatars.discourse-cdn.com/v4/letter/j/eb9ed0/32.png) [@jontyc](https://forum.kirupa.com/u/jontyc)
#### Post date: [November 11, 2008, 5:13am UTC](https://forum.kirupa.com/t/browser-scaling-how-to-get-original-dimensions/275201/1 "2008-11-11T05:13:30Z")

</div>

How does one simply create a Textfield in Actionscript that has the dimensions of stage as seen in the html embed statement?

tf.width = stage.width or tf.width = stage.stageWidth

is no good as browser zooming has already scaled stage.width and stage.stageWidth, and then will scale the textfield - so a double scale.

This is ok if browser zooming occurs after creation, just not before.
