# Using button arrays

**URL:** https://forum.kirupa.com/t/using-button-arrays/225445
**Category:** Uncategorized
**Created:** [May 11, 2007, 8:21pm UTC](https://forum.kirupa.com/t/using-button-arrays/225445 "2007-05-11T20:21:02Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![geestring](https://avatars.discourse-cdn.com/v4/letter/g/e19b73/32.png) [@geestring](https://forum.kirupa.com/u/geestring)
#### Post date: [May 11, 2007, 8:21pm UTC](https://forum.kirupa.com/t/using-button-arrays/225445/1 "2007-05-11T20:21:02Z")

</div>

lets say i have a button array setup and this function is used for the array.

this[butArray\*].onRelease = function() {

```
		this.gotoAndStop(6);

		destinationY = this._y;

```

};

this runs the action for all buttons.  
lets says i want “a.\_visible = false;” to run only when “button3” of the array is pressed?
