# Counting MovieClip on Stage through script

**URL:** <https://forum.kirupa.com/t/counting-movieclip-on-stage-through-script/18878>\
**Category:** flash\
**Created:** [April 22, 2003, 6:42am UTC](https://forum.kirupa.com/t/counting-movieclip-on-stage-through-script/18878 "2003-04-22T06:42:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Curoy](https://avatars.discourse-cdn.com/v4/letter/c/4491bb/32.png) [@Curoy](https://forum.kirupa.com/u/Curoy)\
**Post date:** [April 22, 2003, 6:42am UTC](https://forum.kirupa.com/t/counting-movieclip-on-stage-through-script/18878/1 "2003-04-22T06:42:43Z")

</div>

Can someone help me on how to count the movieclip on the stage? for example i have duplicate a movie through an action script and i want to return the number of movie clips to a dynamic text.

HELP! thanks

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 22, 2003, 7:13am UTC](https://forum.kirupa.com/t/counting-movieclip-on-stage-through-script/18878/2 "2003-04-22T07:13:34Z")

</div>

You could use a for…in loop…

[http://www.kirupa.com/developer/actionscript/tricks/forin.asp](http://www.kirupa.com/developer/actionscript/tricks/forin.asp)

What is your method of duplication though? Can you provide the script or an example .fla file … there could be an easier way.
