# Instance vs linkage

**URL:** <https://forum.kirupa.com/t/instance-vs-linkage/181921>\
**Category:** Uncategorized\
**Created:** [March 14, 2006, 8:57am UTC](https://forum.kirupa.com/t/instance-vs-linkage/181921 "2006-03-14T08:57:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![blaatorx](https://avatars.discourse-cdn.com/v4/letter/b/f17d59/32.png) [@blaatorx](https://forum.kirupa.com/u/blaatorx)\
**Post date:** [March 14, 2006, 8:57am UTC](https://forum.kirupa.com/t/instance-vs-linkage/181921/1 "2006-03-14T08:57:06Z")

</div>

peepz,  
i have a script that works with a linkage name, but not with an instance name.  
now i want it to work with an instance name like this:

```auto

addPage("start");
for(var i = 1; i<(ap.length+1); i++)
{
 addPage(page+i)
 trace("page"+i)
}
addPage("end");

```

the movieclips are generated using this script:

```auto

function showArray()
{
 for (var z = 1; z<(ap.length+1); z++) 
 {        
  mcPage.duplicateMovieClip("page"+z, z);
  
  this["page"+z]._y = 95
  
  if(z >= ap.length-1)
  {
   trace("yes")
   play();
  }
  trace(ap[z].image)   
 }
}

```

what can be the problem with the difference between instance names and linkage names?  
thnx already!
