Help! auto-resize. simple

I want to do exactly this in AS2: (auto-resizing)

http://www.kirupa.com/developer/as3/resizing_centering_as3.htm

If you look at the source it`s very simple:

[INDENT][SIZE=1]function init()
{
stage.align=StageAlign.TOP_LEFT;
stage.scaleMode=StageScaleMode.NO_SCALE;

stage.addEventListener(Event.RESIZE, updateSize);
stage.dispatchEvent(new Event(Event.RESIZE));

}
init();

function updateSize(e:Event)
{
//Set background’s size
backgroundMC.width = stage.stageWidth;
backgroundMC.height = stage.stageHeight;

//center movie clip
contentMC.x = stage.stageWidth/2 - contentMC.width/2;
contentMC.y = stage.stageHeight/2 - contentMC.height/2;

//display the dimensions
contentMC.sizeText.text = stage.stageWidth + " by " + stage.stageHeight;

}[/SIZE]
[/INDENT]How can I translate this into AS2???

[SIZE=2]Someone posted the same question here (http://www.kirupa.com/forum/showthread.php?t=326805) but I really don`t understand the answer given.

a new answer would be much appreciated…Thanks in advance…
[/SIZE]