# Shorter notation for zillion onRollOver's?

**URL:** https://forum.kirupa.com/t/shorter-notation-for-zillion-onrollovers/66394
**Category:** Uncategorized
**Created:** [October 5, 2004, 3:10pm UTC](https://forum.kirupa.com/t/shorter-notation-for-zillion-onrollovers/66394 "2004-10-05T15:10:47Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![RedSox](https://avatars.discourse-cdn.com/v4/letter/r/e95f7d/32.png) [@RedSox](https://forum.kirupa.com/u/RedSox)
#### Post date: [October 5, 2004, 3:10pm UTC](https://forum.kirupa.com/t/shorter-notation-for-zillion-onrollovers/66394/1 "2004-10-05T15:10:47Z")

</div>

Simple question:

Let’s say I have 10 or 100 or 1000 mc’s on stage that do exactly the same on an onRollOver event and on an onRollOut event, what’s the easiest way of writing this ?  
Just for clarity, let’s assume that the mc’s are called mc1 to mc100, could it be done with an array and/or for statement ?

Cause I’m used to old fashioned coding, I’m used not to try to cut corners 🙂 So it kind of restricts my thinking a bit at times.  
So, do I need to start with an onRollOver event handler for each button in order to make Flash notice the onRollOver event for each button ? (if you get my point).

Thanks for clearing this up! 🙂
