# Help me

**URL:** <https://forum.kirupa.com/t/help-me/63184>\
**Category:** Uncategorized\
**Created:** [September 3, 2004, 4:26pm UTC](https://forum.kirupa.com/t/help-me/63184 "2004-09-03T16:26:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![flint](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/flint/32/466_2.png) [@flint](https://forum.kirupa.com/u/flint)\
**Post date:** [September 3, 2004, 4:26pm UTC](https://forum.kirupa.com/t/help-me/63184/1 "2004-09-03T16:26:35Z")

</div>

ok im trying to get 1 button to play a movie clip (a door opening) and the same button to close the door i know its possible and i think its by arrays but not sure so please help :red:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 4, 2004, 7:34am UTC](https://forum.kirupa.com/t/help-me/63184/2 "2004-09-04T07:34:16Z")

</div>

Something like

```auto
var door = 0;
yourButton.onRelease = function() {
	if (!door) {
		door_mc.gotoAndPlay("opening");
		door = 1;
	} else {
		door_mc.gotoAndPlay("closed");
		door = 0;
	}
};

```

?  
btw next time use better titles for your thread;)  
[http://www.kirupaforum.com/forums/showthread.php?t=7457](http://www.kirupaforum.com/forums/showthread.php?t=7457)

scotty(-:
