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]
[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]