# 1000 MC's individually reacting to same Var;enterFrame in each MC or central enterFr?

**URL:** <https://forum.kirupa.com/t/1000-mcs-individually-reacting-to-same-var-enterframe-in-each-mc-or-central-enterfr/285170>\
**Category:** programming\
**Created:** [March 27, 2009, 8:38pm UTC](https://forum.kirupa.com/t/1000-mcs-individually-reacting-to-same-var-enterframe-in-each-mc-or-central-enterfr/285170 "2009-03-27T20:38:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![simkirupa](https://avatars.discourse-cdn.com/v4/letter/s/ba9def/32.png) [@simkirupa](https://forum.kirupa.com/u/simkirupa)\
**Post date:** [March 27, 2009, 8:38pm UTC](https://forum.kirupa.com/t/1000-mcs-individually-reacting-to-same-var-enterframe-in-each-mc-or-central-enterfr/285170/1 "2009-03-27T20:38:39Z")

</div>

Hi,

When you have a lot of MovieClips or Objects (say 1000) which all have their own individual behaviour to the same, constantly changing, ‘global’ variable, would it be better to make a Class with an enterFrame to interpret that value and assign that Class to each MovieClip (so there is a 1000 enterframe’s running), or would it be more advisable to make an Array that holds each clip’s name, and make a one central EnterFrame that loops through that Array and assigns each clip it’s value?

Many thanks!

Sim
