Closing one MC & prompting another MC to open


I am trying to close one movie clip and then with the same button, prompt another to open.

this code opens and closes it…

this.attachMovie(“popup1”, “popup1”,1);
this.popup1.close.onpress = function () {

But how do I get popup2 to open when popup1 closes?

Any help will be greatly appreciated!