# Confusing error, please help

**URL:** <https://forum.kirupa.com/t/confusing-error-please-help/234515>\
**Category:** Uncategorized\
**Created:** [August 2, 2007, 9:51pm UTC](https://forum.kirupa.com/t/confusing-error-please-help/234515 "2007-08-02T21:51:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![GrndMasterFlash](https://avatars.discourse-cdn.com/v4/letter/g/71c47a/32.png) [@GrndMasterFlash](https://forum.kirupa.com/u/GrndMasterFlash)\
**Post date:** [August 2, 2007, 9:51pm UTC](https://forum.kirupa.com/t/confusing-error-please-help/234515/1 "2007-08-02T21:51:57Z")

</div>

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

```auto

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

```auto
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:
