Stage.width and Stage.height are read only, and once you publish, the stage itself doesn't ever change sizes. The browser window does, so you can scale the movie accordingly, but this is rough.
You may want to look into scaleMode and align...
Code:
Stage.scaleMode = "noScale";
Stage.align = "LT";
You can also add a listner and make a resize function:
Code:
Stage.scaleMode = "noScale";
var myListener:Object = new Object ();
myListener.onResize = function ()
{
mytext.text = "Stage size is now " + Stage.width + " by " + Stage.height;
};
Stage.addListener (myListener);
For the positioning try something like the following:
Code:
Stage.align = "LT";
Stage.scaleMode = "noScale";
stageListener = {};
stageListener.onResize = function(){
header._y = Stage.height - header._height;
header._x = Stage.width - header._width;
}
Stage.addListener(stageListener);
Bookmarks