# Why doesnt it work? Multiple MCs via AS

**URL:** <https://forum.kirupa.com/t/why-doesnt-it-work-multiple-mcs-via-as/206004>\
**Category:** Uncategorized\
**Created:** [November 3, 2006, 11:53pm UTC](https://forum.kirupa.com/t/why-doesnt-it-work-multiple-mcs-via-as/206004 "2006-11-03T23:53:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Binji](https://avatars.discourse-cdn.com/v4/letter/b/cdc98d/32.png) [@Binji](https://forum.kirupa.com/u/Binji)\
**Post date:** [November 3, 2006, 11:53pm UTC](https://forum.kirupa.com/t/why-doesnt-it-work-multiple-mcs-via-as/206004/1 "2006-11-03T23:53:02Z")

</div>

Im trying to create a MC where i have multiple instances of another MC in a pattern.  
I tried this code:

```auto

    _root.createEmptyMovieClip("vzorec_vrat", this.getNextHighestDepth());
        var k:Object;
        for (i = 0; i<stKasetVer; i++) {
            for (j = 0; j<stKaset; j++) {
                k = _root.vzorec_vrat.attachMovie("kaseta", "kaseta"+i+""+j, this.getNextHighestDepth());
                k._x = i*520+presledekHor;
                k._y = j*400+presledekVer;

            }
        }
        _root.vzorec_vrat._x = zac_X;
        _root.vzorec_vrat._y = 480-visinaPr;

```

but nothing shows up in the movie. If i simply call

```auto

       _root.vzorec_vrat.attachMovie("kaseta", "kaseta_mc", this.getNextHighestDepth());

```

the instance of that MC shows up fine so something’s wrong with the way im showing mupltiple instances. But what?
