# Multiple loadListeners

**URL:** https://forum.kirupa.com/t/multiple-loadlisteners/275948
**Category:** Uncategorized
**Created:** [November 20, 2008, 2:36pm UTC](https://forum.kirupa.com/t/multiple-loadlisteners/275948 "2008-11-20T14:36:15Z")
**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: [November 20, 2008, 2:36pm UTC](https://forum.kirupa.com/t/multiple-loadlisteners/275948/1 "2008-11-20T14:36:15Z")

</div>

Hi I want to put a load of images on the stage - each with a blend mode.  
However, when i put the code through a for loop, Only the last MC gets the blend Mode command. why is this? Can anyone help?

```auto
for (i=1;i<5;i++)
{
    var mcLoader:MovieClipLoader = new MovieClipLoader();
    var mcEar:Object = new Object();
    mcLoader.addListener(mcEar);
    
    container = attachMovie("pic","pic"+i,i,{_x:i*50});
    mcLoader.loadClip(i+".jpg",container);
    
    mcEar.onLoadInit = function()
    {
    container.blendMode = 3;    
    }    
}

```
