Moving to next scene without buttons

can anyone help me… i want to go from one scene to another without using buttons or any clicking…
i thought gotoAndPlay(“scene 2”,1); would work but that has to have a handler… please help…