# Library class override events

**URL:** <https://forum.kirupa.com/t/library-class-override-events/292644>\
**Category:** Uncategorized\
**Created:** [July 16, 2009, 9:14pm UTC](https://forum.kirupa.com/t/library-class-override-events/292644 "2009-07-16T21:14:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andir](https://avatars.discourse-cdn.com/v4/letter/a/8797f3/32.png) [@Andir](https://forum.kirupa.com/u/Andir)\
**Post date:** [July 16, 2009, 9:14pm UTC](https://forum.kirupa.com/t/library-class-override-events/292644/1 "2009-07-16T21:14:50Z")

</div>

I’m having a total brain fart right now because I haven’t dealt with AS2 library linkage classes in a while. I want to be able to let a designer assign an object in the library to a specific class and have that class listen for changed \_x and \_y values.

I have the class made up that extends MovieClip:

```auto
class CoordinateMonitor extends MovieClip {
   public function CoordinateMonitor () {}
}

```

But I draw a blank now on how I’m to monitor \_x and \_y values for the clip. I’m pretty sure I remember it being possible to do this and declaring an overriding function (“public function set \_x(val:Number) { super.\_x = val; }”) does not work as intended.

Maybe someone can refresh my memory… give me direction?
