# Button start MC

**URL:** <https://forum.kirupa.com/t/button-start-mc/54746>\
**Category:** Uncategorized\
**Created:** [June 17, 2004, 5:22am UTC](https://forum.kirupa.com/t/button-start-mc/54746 "2004-06-17T05:22:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![eze](https://avatars.discourse-cdn.com/v4/letter/e/e79b87/32.png) [@eze](https://forum.kirupa.com/u/eze)\
**Post date:** [June 17, 2004, 5:22am UTC](https://forum.kirupa.com/t/button-start-mc/54746/1 "2004-06-17T05:22:58Z")

</div>

hey i use to have this code but i wasnt working -

```auto

button_array = ["home", "plans", "terms", "contact"];
for (var i in button_array) {
 btn = this[button_array*];
 btn.clip = this[button_array*]+"_mc";
 btn.onRelease = function() {
  _root.fromName = btn.clip;
  content_mc.gotoAndPlay(36);
 };
}

```

so i forced to change to individual onRelease functions -

```auto

home.onRelease = function() {
  _root.fromName = "home_mc"
  content_mc.gotoAndPlay(36);
 };
 
plans.onRelease = function() {
  _root.fromName = "plans_mc"
  content_mc.gotoAndPlay(36);
 };
 
terms.onRelease = function() {
  _root.fromName = "terms_mc"
  content_mc.gotoAndPlay(36);
 };
 
contact.onRelease = function() {
  _root.fromName = "contact_mc"
  content_mc.gotoAndPlay(36);
 };

```
