So you might be embedding you SWF into an HTML page and then you discover that stageWidth/stageHeight are almost but not entirely unrelated to the actual dimensions of the embedded component. Or, rather, it’s more complex than that: they equate exactly to the dimensions you provide, but drawing a box from (0,0)->(stageWidth,stageHeight) doesn’t actually bound the embedded component as you’d expect. For example, assume you embed a simple 800×200 component into a page that tries to simply outline itself in red. You’ll get something crazy like:

Basically, the red box you draw outlining the stage seems almost entirely unlike the component outline. However, there’s this other box that does look suspicious: if you draw a green box from (0,0)->(500,350) it’ll mysteriously be centered and scaled perfectly. The reason? mxmlc.exe has a “-default-size” parameter that — when not set — is apparently set to 500×350. Intead, add -default-size 800 200 (or whatever dimensions you want), and it’ll come out right:
