Hey guys, everyone’s been real helpful the few times i’ve been here so I figured i’d run my question here.
I have an array with about 18 movieclips.
I added mouse click event listeners to each one through a for loop
for(var i:int=0; i<covers.length; i++) {
covers*.addEventListener(MouseEvent.CLICK, highlight);
}
That works fine, but when i click cover* (which ever one it may be) I need it to tell me which one was clicked. I needs to return the array id number, not like an x or y property of the MC.
I could add the events manually per movieclip, but i’d rather keep it grouped in an array as it’s likely that there will be many more added in the future.
Thanks in advance!