# \[FMX\]Different height properties in an array?

**URL:** <https://forum.kirupa.com/t/fmx-different-height-properties-in-an-array/131586>\
**Category:** Uncategorized\
**Created:** [December 17, 2004, 5:28am UTC](https://forum.kirupa.com/t/fmx-different-height-properties-in-an-array/131586 "2004-12-17T05:28:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dboers](https://avatars.discourse-cdn.com/v4/letter/d/bbe5ce/32.png) [@dboers](https://forum.kirupa.com/u/dboers)\
**Post date:** [December 17, 2004, 5:28am UTC](https://forum.kirupa.com/t/fmx-different-height-properties-in-an-array/131586/1 "2004-12-17T05:28:58Z")

</div>

Hi everybody,

I have 6 movieclips working as buttons (about\_btn, menu\_btn, drinks\_btn, pics\_btn, guestbook\_btn and contact\_btn) and they are insite another movieclip called menu\_mc. I control them with this function:

```auto
function setButtons() {
 for (var i in menu_mc) {
  if (menu_mc*._name.substr(-4) == "_btn") {
   clip = menu_mc*;
   clip.onRollOver = function() {
	// rollover stuff goes here
   };
   clip.onRollOut = function() {
	// rollout stuff goes here
   };
   clip.onRelease = function() {
	// release stuff goes here
   };
  }
 }
}
setButtons();

```

I have a square on the stage that should change in height depending which button is presses. I tought it was possible to do that with an array, but i can’t figure out how. This is the array with the heights:

```auto
hoogtes = new Array():
hoogtes = ["275", "250", "240", "250", "210", "200"];

```

note: the order of the heights in the array correspond with the order of the buttons.

I hope somebody has the answer to my question.

Thanks in advance
