How to create event handlers for my classes?

Hey all,

I’m wondering, how can I create event handler for a class that I wrote myself?

Example:

class blah {
    var ladida:string;
    function blah () {
        this->ladida = "blah";
    }
}

lame = new blah();


How is it possible to create an event handler, like lame.onChange? When the variable inside the class is changed, how would i be notified?

Thanks (-: