# Event listener function from an array

**URL:** <https://forum.kirupa.com/t/event-listener-function-from-an-array/306262>\
**Category:** Uncategorized\
**Created:** [March 11, 2010, 9:16pm UTC](https://forum.kirupa.com/t/event-listener-function-from-an-array/306262 "2010-03-11T21:16:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeancnicolas](https://avatars.discourse-cdn.com/v4/letter/j/7bcc69/32.png) [@jeancnicolas](https://forum.kirupa.com/u/jeancnicolas)\
**Post date:** [March 11, 2010, 9:16pm UTC](https://forum.kirupa.com/t/event-listener-function-from-an-array/306262/1 "2010-03-11T21:16:05Z")

</div>

Hello, I want to add a function from an array to my addeventlistener … so I can add different functions within a loop…

```auto

var ary:Array = new Array(one,two);
button.addEventListener(MouseEvent.CLICK, ary*);

```

ps … yes i left out the for loop code :: for simplicity sakes

any ideas whether this is possible?
