Hi, I’ve had a look for this answer elsewhere, but it never seems to actually get answered for sure.
How do I get the actual stage width or height as specified in the flash movie itself.
I want to keep the stage scale mode to SHOW_ALL but need to be able to reference the original unchanging stage size for centering purposes. At the moment, depending on the window frame size (which should be central anyway) my items are horizontally around 60px off when I use this code:
bg.x = stage.width / 2 - bg.width / 2;
Is it possible, or do I have to set a constant at the beginning of my code?