Confusing error, please help

im getting an error and i don’t know why, here is my code


import flash.display.*;
import flash.events.*;
import flash.ui.Keyboard;

function baseset() {
    player.h01.alpha = .0;
    player.h02.alpha = .0;
    player.n01.alpha = .0;
    player.g01.alpha = 1;
}

baseset();

function clickbh01(event:MouseEvent) {
    player.h01.alpha= 1;
    trace("?");
}

bh01.addEventListener(MouseEvent.MOUSE_DOWN, clickbh01);

produces this erroe and won’t register any of the code after baseset()

here is the error message

TypeError: Error #1010: A term is undefined and has no properties.
    at Untitled_fla::MainTimeline/baseset()
    at Untitled_fla::MainTimeline/Untitled_fla::frame1()

i can’t figure why it says its undefined when it clearly is defined and the function even executes but none of the code after will :q: