# Basic movie event

**URL:** <https://forum.kirupa.com/t/basic-movie-event/266304>\
**Category:** Uncategorized\
**Created:** [July 18, 2008, 7:14am UTC](https://forum.kirupa.com/t/basic-movie-event/266304 "2008-07-18T07:14:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![zeff](https://avatars.discourse-cdn.com/v4/letter/z/b77776/32.png) [@zeff](https://forum.kirupa.com/u/zeff)\
**Post date:** [July 18, 2008, 7:14am UTC](https://forum.kirupa.com/t/basic-movie-event/266304/1 "2008-07-18T07:14:54Z")

</div>

Hello Guys,  
I’m new to AS3 and i couldn’t solve this very simple error  
[COLOR=Blue]\*\*ReferenceError: Error #1069: Property labeltxt not found on flash.text.TextField and there is no default value. at testas\_fla::MainTimeline/button\_ss()

\*\*[COLOR=Black]for the [/COLOR][/COLOR][COLOR=Black]button\_out and [/COLOR][COLOR=Black]button\_hover it was working fine but the [/COLOR][COLOR=Blue][COLOR=Black]button\_click  
raise the above error message

[/COLOR][/COLOR][COLOR=Blue]\*\*[COLOR=Red]this is my code[/COLOR]  
\*\*[/COLOR]

```auto
[COLOR=Blue]function button_hover(evt:Event):void{
    evt.target.labeltxt.text="HOVER";

}
function button_out(evt:Event):void{
    evt.target.labeltxt.text="HOUT";

}

function button_click(evt:Event):void{
evt.target.labeltxt.text="HOUT";
}

tmp_btn.addEventListener(MouseEvent.ROLL_OVER,button_hover);
tmp_btn.addEventListener(MouseEvent.CLICK,[/COLOR][COLOR=Blue]button_click[/COLOR][COLOR=Blue]);
tmp_btn.addEventListener(MouseEvent.ROLL_OUT,button_out);[/COLOR]

```
