# Anyone help on this simple task?

**URL:** <https://forum.kirupa.com/t/anyone-help-on-this-simple-task/190189>\
**Category:** flash\
**Created:** [June 9, 2006, 11:04am UTC](https://forum.kirupa.com/t/anyone-help-on-this-simple-task/190189 "2006-06-09T11:04:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![trevorsaint](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/trevorsaint/32/268_2.png) [@trevorsaint](https://forum.kirupa.com/u/trevorsaint)\
**Post date:** [June 9, 2006, 11:04am UTC](https://forum.kirupa.com/t/anyone-help-on-this-simple-task/190189/1 "2006-06-09T11:04:50Z")

</div>

```php
buttons = ["b1", "b2", "b3", "b4", "b5", "b6"]

buttons[0].onRollOver = over;
buttons[0].onRollOut = out;

function over() {
	this.gotoAndPlay(2);
}
function out() {
	this.gotoAndPlay(7);
}

```

If I wanted an array surely this would work, as it outputs b1 fine with a trace, but how come the button does not seem to pick it up?

Any ideas
