# Inheritance and Function Identifiers

**URL:** <https://forum.kirupa.com/t/inheritance-and-function-identifiers/234947>\
**Category:** flash\
**Created:** [August 7, 2007, 12:39pm UTC](https://forum.kirupa.com/t/inheritance-and-function-identifiers/234947 "2007-08-07T12:39:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dan0](https://avatars.discourse-cdn.com/v4/letter/d/97f17d/32.png) [@Dan0](https://forum.kirupa.com/u/Dan0)\
**Post date:** [August 7, 2007, 12:39pm UTC](https://forum.kirupa.com/t/inheritance-and-function-identifiers/234947/1 "2007-08-07T12:39:49Z")

</div>

Hi again :to:,  
I know I ask too many questions but its fun typing all of this to people I don’t know. Ok so here goes;  
I have all my button instances created from 1, generic class. I can easily get the class to register a MOUSE\_DOWN event listener when clicked. However, I want the container of the buttons to register/process the clicks and Im not sure how to do this;

- either parse a link to each button of the function I want them to trigger and parse a unique identifier. But I do not know how to tell the button which function to trigger eg.

```auto

//Container Class
var myButton = new ButtonCreate("text",width,<function identifier>, <unique ID>);
// ButtonCreate Class
function onClickMe(e:Event){
<function identifier>(<unique ID>);
}

```

- OR - I use Inheritance so each different group of buttons inherit a different function when clicked, but I do not know where to start with this, let alone how to it efficiently.

Thanks for the awsem help, :moustache  
Dan
