Ok so I saw this tutorial http://www.kirupa.com/developer/as3/resizing_centering_as3.htm
but I need to make that in Action Script 2.0
I’ve find the code for the same thing:
**//Pursuant to the tutorial example here is the AS2 conversion:
INIT_Stage();
StageResize();
//////////////////////////////////////// | INIT_Stage();
function INIT_Stage() {
Stage.align = “TL”;
Stage.scaleMode = “noScale”;
}
//////////////////////////////////////// | StageResize();
function StageResize():Void {
ObjectTopLeft(backgroundRectangle);
ObjectFullStage(backgroundRectangle);
ObjectCenterStage(centerRectangle);
}
//////////////////////////////////////// |
var StageListener:Object = new Object();
StageListener.onResize = function():Void {
StageResize();
updateAfterEvent();
}
Stage.addListener(StageListener);**
but it still doesn’t work. I have named the instances centerRectangle and backgroundRectangle, worked in one frame and three layers. I don’t know what is the problem? Please can you help?