# When MC is duplicated, do action?

**URL:** <https://forum.kirupa.com/t/when-mc-is-duplicated-do-action/222812>\
**Category:** Uncategorized\
**Created:** [April 17, 2007, 7:36am UTC](https://forum.kirupa.com/t/when-mc-is-duplicated-do-action/222812 "2007-04-17T07:36:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![johnlouis](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/johnlouis/32/568_2.png) [@johnlouis](https://forum.kirupa.com/u/johnlouis)\
**Post date:** [April 17, 2007, 7:36am UTC](https://forum.kirupa.com/t/when-mc-is-duplicated-do-action/222812/1 "2007-04-17T07:36:19Z")

</div>

what syntax should i use if i want to duplicate a movieclip, and when that movieclip is duplicated, i set some values, and then call a function to modify those values in an onEnterFrame event handler.  
[rough pseudocode]

```auto
_root.onEnterFrame = function(){
    for(i=0;i<10;i++){
        duplicateMovieClip("mc"+i);
        set some ["mc"+i]._values;
        call some ["mc"+i].function();
    }
}

```
