0 Replies Latest reply on Aug 15, 2006 9:08 AM by targetplanet

    Getting initial width and height of Stage

    targetplanet Level 1
      I am trying to get the width and height of my stage when it is first open in the browser. So basically I want to get the browser width and height, so I can make my app fit the window. I figured out how to change it when the browser window is resized, but I cant ge an initial value.
      I tried setting a var in my init function to stage.width, there were ni compile errors, but it threw a runtime error, something about setting a value to a null object.

      any help?
      Thanks
      Russ