# Targeting dynamically generated MCs

**URL:** <https://forum.kirupa.com/t/targeting-dynamically-generated-mcs/227686>\
**Category:** Uncategorized\
**Created:** [June 1, 2007, 8:15am UTC](https://forum.kirupa.com/t/targeting-dynamically-generated-mcs/227686 "2007-06-01T08:15:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![clum](https://avatars.discourse-cdn.com/v4/letter/c/71c47a/32.png) [@clum](https://forum.kirupa.com/u/clum)\
**Post date:** [June 1, 2007, 8:15am UTC](https://forum.kirupa.com/t/targeting-dynamically-generated-mcs/227686/1 "2007-06-01T08:15:23Z")

</div>

I have some movieclips…Which i want to make on release actions for;  
MCs Made as follows…

```auto
for(i=0; i<allNews.length; i++){
        
        duplicateMovieClip(_root.newsBox.newsCount.allNumbers.newsNumber, "newsNumber"+(i+1), 5+i);
        _root.newsBox.newsCount.allNumbers["newsNumber"+(i+1)].digit = (i+1);
        _root.newsBox.newsCount.allNumbers["newsNumber"+(i+1)]._x = (numberX+(numberW*(i+1)));
        }

```

I cant seem to target them!  
What am i doing wrong?

I have the following on the M-clip that is being duplicated, but i feel i need to generate this somehow after the clips are duplicated on stage in order for this to work…

```auto
on (release){
    //function clickedNews(){
    _root.newsBox.newsContent.title = allheadings[(this.digit)];
    _root.newsBox.newsContent.content = allNews[(this.digit)].firstChild;
    _root.newsBox.newspicbox_mc.loadMovie("content/newsthumb"+[this.digit]+".jpg");

```

Many Thanks for any help people… in advance.
