Posable to call a function from a diffrent frame?

Hello,
on frame 2 of my movie I have this function:

but.onPress=function(){
gotoAndStop(1); //need to run function 'openList' on the 1st frame
	openList();
}

on frame 1 there is a function called ‘openList’ that I need to access from frame 2. Is there anyway I can do both: gotoAndStop(1), as well as openList()?

thanks for any insight!