Been Having alot of problems with this bit of code could anyone help?

Ive working on this error for quite some time and i have no clue on why it just isnt working before i had the error code 5000 but that has disappeared when i decided to write in the full code and now i get the 1126 error code for lines 24 and 29,

package
{
import flash.display.MovieClip;
import flash.events.MouseEvent;

public class Main extends MovieClip
{
    var startPage:Startpage;
    var hillPage:HillPage;
    var pondPage : PondPage;
    
    public function Main()
    {
        startPage = new startPage;
        hillPage = new HillPage();
        pondPage = new PondPage();
        addChild(startPage);
        
        //Event Listeners
        startPage.hillButton.addEventListener(MouseEvent.CLICK, onHillButtonClick);
        startPage.pondButton.addEventListener(MouseEvent.CLICK, onPondButtonClick);
    }
    //Event Handlers
    function onHillButtonClick(event:MouseEvent):void
            
            addChild(hillPage);
            removeChild(startPage);
    
    function onPondButtonClick(event:MouseEvent):void
            
            addChild(pondPage);
            removeChild(startPage);
    }
}