Jun
06
2009
Incorrect stage.stageHeight value when testing a movieClip
This is a small annoying bug present in Flash 8, CS3 and CS4. If you create a movie, lets say 550x400 px and add a trace command to your actions: trace(stage.stageHeight); you will get an incorrect result like 300, not 400px;
You will get that incorrect value only when testing a movie from Flash (Ctrl+Enter), it will work as exprected when publishing or debugging. The reason for that is a Bandwidth Profile window if you use it when testing your movies. If you close it (CTRL+B or View -> Bandwidth Profiler), you will get a correct height value. You can also get an incorrect value if you resize the testing window to the size when it won't fit the menu options in one line.

