Help me

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:

Something like

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

scotty(-: