# Is this Possible

**URL:** <https://forum.kirupa.com/t/is-this-possible/281643>\
**Category:** flash\
**Created:** [February 11, 2009, 6:12pm UTC](https://forum.kirupa.com/t/is-this-possible/281643 "2009-02-11T18:12:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mister\_B1](https://avatars.discourse-cdn.com/v4/letter/m/57b2e6/32.png) [@Mister\_B1](https://forum.kirupa.com/u/Mister_B1)\
**Post date:** [February 11, 2009, 6:12pm UTC](https://forum.kirupa.com/t/is-this-possible/281643/1 "2009-02-11T18:12:53Z")

</div>

Hi

I have a series of movie clip instances that have dynamically loaded graphics in them. I want to use them as buttons. The movie clip instances are stored in an array, and created dynamically.

According my limited, and probably erroneous, knowledge, all I know can do is use buttonmode, create an several event listeners for each button, and loads of functions. It’s so bad!

Please, how can I do this simply and efficiently? I have pasted this code below to try to show how I’m thinking…

for (var k:int=0; k\<4; k++)  
{  
movieClip[k].buttonMode = true  
movieClip[k].addEventListener(MouseEvent.MOUSE\_OVER, bright)  
movieClip[k].addEventListener(MouseEvent.MOUSE\_OUT, dull)  
movieClip[k].addEventListener(MouseEvent.MOUSE\_OVER, select)  
}
