# Arrays, movie clip instances, event listeners

**URL:** <https://forum.kirupa.com/t/arrays-movie-clip-instances-event-listeners/269432>\
**Category:** flash\
**Created:** [August 27, 2008, 3:26pm UTC](https://forum.kirupa.com/t/arrays-movie-clip-instances-event-listeners/269432 "2008-08-27T15:26:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mondoFred](https://avatars.discourse-cdn.com/v4/letter/m/b3f665/32.png) [@mondoFred](https://forum.kirupa.com/u/mondoFred)\
**Post date:** [August 27, 2008, 3:26pm UTC](https://forum.kirupa.com/t/arrays-movie-clip-instances-event-listeners/269432/1 "2008-08-27T15:26:07Z")

</div>

I am attempting to create an interactive map of a business office, floor by floor. Each floor has offices, cubicles, and conference rooms. The map will display a description of the room over which the mouse hovers.

If I have an array of “room IDs” (“conf101”, “conf102”, “conf103”, etc.), and these IDs serve as the prefix to a movie clip instance (“conf101\_mc”) representing each room, how may I assign an event listener to each instance (using a loop)?
