Converting code to use in AS2

Hi,

is there a code for Actionscript 2.0 for the “Auto-Resizing and Centering your Content” Tutorial
all my code is in AS2 and i cant change it.

The link to the tutorial is
http://www.kirupa.com/developer/as3/resizing_centering_as3.htm

I get an error in AS2 in the line

**function updateSize(e:Event) **

Thanks