Resize class

Argh … this is really geeting on my nerves!

I am trying to make a resize class that centers my main movie, but i can’t seem to get it to work when i put it in a class.

This is my code so far.

import mx.utils.Delegate;

class resizeClass extends MovieClip {

    private var sw:Number = Stage.width;
    private var sh:Number = Stage.height;
    public function resizeClass() {
        var listener:Object = new Object();
        listener.onResize = Delegate.create(this, onResizeHandler);

    public function onResizeHandler() {


I get no errors, but i dont get the trace message either :expressionless:

I’m caling my class through linkage in the library.