# How to create event handlers for my classes?

**URL:** <https://forum.kirupa.com/t/how-to-create-event-handlers-for-my-classes/84710>\
**Category:** flash\
**Created:** [March 29, 2005, 10:37pm UTC](https://forum.kirupa.com/t/how-to-create-event-handlers-for-my-classes/84710 "2005-03-29T22:37:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![MTsoul](https://avatars.discourse-cdn.com/v4/letter/m/91b2a8/32.png) [@MTsoul](https://forum.kirupa.com/u/MTsoul)\
**Post date:** [March 29, 2005, 10:37pm UTC](https://forum.kirupa.com/t/how-to-create-event-handlers-for-my-classes/84710/1 "2005-03-29T22:37:05Z")

</div>

Hey all,

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

Example:

```auto
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 (-:
