# "instance names"

**URL:** https://forum.kirupa.com/t/instance-names/234133
**Category:** flash
**Created:** [July 30, 2007, 8:32pm UTC](https://forum.kirupa.com/t/instance-names/234133 "2007-07-30T20:32:42Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![vintage](https://avatars.discourse-cdn.com/v4/letter/v/e68b1a/32.png) [@vintage](https://forum.kirupa.com/u/vintage)
#### Post date: [July 30, 2007, 8:32pm UTC](https://forum.kirupa.com/t/instance-names/234133/1 "2007-07-30T20:32:42Z")

</div>

Finally I started to learn some basic as3 coding and trying to understand the frequently used stuff.  
So Im trying the “attachMovie” in as,…best of all, it works 😃  
But I have this little question about the names that flash gives the attached movies.

I made this little script:

```auto
for(var i:Number=0; i<5; i++){
    
     var mc = new MovieClip();
     mc = addChild(new Ding()); //a mc with classname Ding in the library
     mc.x = i*20
     mc.y = i*50;
     mc.addEventListener(MouseEvent.CLICK, actie);
    
}

function actie(event:MouseEvent):void{
    trace(event.target.name)
}

```

**Traces:**  
_instance2  
instance5  
instance8  
instance11  
instance14_

Can anyone explain the logic why the numbers add up by 3 ?  
And can I use these target names for anything usefull ? (I prolly still think to much as2)
