# Multilple eventlistener

**URL:** <https://forum.kirupa.com/t/multilple-eventlistener/310999>\
**Category:** Uncategorized\
**Created:** [June 24, 2010, 9:17pm UTC](https://forum.kirupa.com/t/multilple-eventlistener/310999 "2010-06-24T21:17:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![blackout188](https://avatars.discourse-cdn.com/v4/letter/b/dec6dc/32.png) [@blackout188](https://forum.kirupa.com/u/blackout188)\
**Post date:** [June 24, 2010, 9:17pm UTC](https://forum.kirupa.com/t/multilple-eventlistener/310999/1 "2010-06-24T21:17:43Z")

</div>

This eventlistener hand me the 1034 error as expected, is there anyway to fix the function part so that it won’t show the 1034 error again?

for (var o:uint = 1; i \< 7; i++){  
this[“bug”+o].addEventListener(MouseEvent.CLICK, “bugcontrol”+o+“a”);  
}
