# Passing movies onRelease

**URL:** https://forum.kirupa.com/t/passing-movies-onrelease/54710
**Category:** Uncategorized
**Created:** [June 16, 2004, 11:32pm UTC](https://forum.kirupa.com/t/passing-movies-onrelease/54710 "2004-06-16T23:32:27Z")
**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 16, 2004, 11:32pm UTC](https://forum.kirupa.com/t/passing-movies-onrelease/54710/1 "2004-06-16T23:32:27Z")

</div>

hey im using the following code for my main four buttons -

```auto

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

```

but every button restarts the home\_mc clip…

i call it like this in the content\_mc clip -

```auto

stop();
attachMovie(_root.fromName, _root.fromName, 1);

```

it also gets removed due to a slide down menu refresh everytime a button is pressed.

SO i have no idea whats going on 😑
