Flash mc positioning
Flash mc positioning
Out of context: Reply #11
- Started
- Last post
- 14 Responses
- lvl_130
put this on frame 1 of your file.
Stage.scaleMode = "noScale";
Stage.align = "TL";
var stageListener:Object = new Object();
Stage.addListener(stageListener...
setBackground();
stageListener.onResize = function() {
setBackground();
};
function setBackground() {
//sets your mc to absolute pixel number
//uncomment out below to use this
/*
your_mc._y =76;
your_mc._x =10;
*/
//sets your mc to 100% browser height and width with scale
//uncomment out below to use this
/*
your_mc._width = Stage.width;
your_mc._height = Stage.height;
*///sets your mc to the center of browser height and width no scale
//uncomment out below to use this
/*
your_mc._y = Stage.height/2 ;
your_mc._x = Stage.width/2;
*/
}