# OOP: Custom listener for a class that extends Point. (Help?)

**URL:** https://forum.kirupa.com/t/oop-custom-listener-for-a-class-that-extends-point-help/238094
**Category:** flash
**Created:** [September 7, 2007, 4:20am UTC](https://forum.kirupa.com/t/oop-custom-listener-for-a-class-that-extends-point-help/238094 "2007-09-07T04:20:03Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Aesir](https://avatars.discourse-cdn.com/v4/letter/a/e19adc/32.png) [@Aesir](https://forum.kirupa.com/u/Aesir)
#### Post date: [September 7, 2007, 4:20am UTC](https://forum.kirupa.com/t/oop-custom-listener-for-a-class-that-extends-point-help/238094/1 "2007-09-07T04:20:03Z")

</div>

[COLOR=black][FONT=Arial]I have a class that extends Point, so it cannot extend EventDispatcher. I also cannot get it to implement IEventDispatcher, which seems to make it angry.[/FONT][/COLOR]

[COLOR=black][FONT=Arial]Does anyone have a simplified version of the following pseudo?[/FONT][/COLOR]  
[COLOR=black][FONT=Arial]_class blah{_[/FONT][/COLOR]  
[COLOR=black][FONT=Arial]_constructor( superCoolEvent arguement ){_[/FONT][/COLOR]  
[COLOR=black][FONT=Arial]_addListener( superCoolEvent, doStuff );_[/FONT][/COLOR]  
[COLOR=black][FONT=Arial]_}_[/FONT][/COLOR]  
[COLOR=black][FONT=Arial]_private function doStuff(){…}_[/FONT][/COLOR]  
[COLOR=black][FONT=Arial]_}_[/FONT][/COLOR]

[COLOR=black][FONT=Arial]I saw this in Tip of the Day, but… well the vocabulary confused me senseless.[/FONT][/COLOR]  
[COLOR=black][FONT=Arial]Anyway, thanks![/FONT][/COLOR]
