# Arrays with MCs inside

**URL:** <https://forum.kirupa.com/t/arrays-with-mcs-inside/242981>\
**Category:** flash\
**Created:** [November 1, 2007, 12:21pm UTC](https://forum.kirupa.com/t/arrays-with-mcs-inside/242981 "2007-11-01T12:21:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeancnicolas](https://avatars.discourse-cdn.com/v4/letter/j/7bcc69/32.png) [@jeancnicolas](https://forum.kirupa.com/u/jeancnicolas)\
**Post date:** [November 1, 2007, 12:21pm UTC](https://forum.kirupa.com/t/arrays-with-mcs-inside/242981/1 "2007-11-01T12:21:12Z")

</div>

Hello, I am trying to work out arrays…

I have created an array, which contains all of my menu items. All I want is, when the pointer rolls over one menu item MC, the others disappear.

var titles:Array = new Array(“contact\_mc”,“food\_mc”,“links\_mc”,“test\_mc”,“look\_mc”);

contact\_mc.onRollOver = function(){  
titles.pop(“contact\_mc”);  
titles.\_alpha = 0; \<\<\< this is what I want, BUT how do I write the correct Syntax?  
}

And does flash know - the items in the array are MC’s … or just strings! ?

Thanks!!
