On scroll pane close get frame?

Is it possible to add actionscript to my dragable pane movie clip that whenever the user closes the pane the swf will go back to a certain frame?

a button action for on release to open the draggable pane would also work. anyone? i’m a n00b when it comes to action script