Class Help AS3

Getting this error

ArgumentError: Error #2109: Frame label menus not found in scene menus.
at flash.display::MovieClip/gotoAndStop()
at mainM/clicked()

my frame 2 is names menus and below is my class, I assigned a class to a symbol, and when you click the symbol i want it to change to the frame menus. The trace is working, but gives the error above.


package  {
    
    import flash.display.MovieClip;
    import flash.events.MouseEvent
    
    public class mainM extends MovieClip {
        
        
        public function mainM() {
            addEventListener(MouseEvent.CLICK,clicked)
             
        }
        public function clicked(e:MouseEvent)
            {
                trace("worked");
                gotoAndStop("menus");
                
            }
    }
    
}