[CS3] Receiving the error: #1006 value is not a function

I have been looking around, and to no avail. Here is my code:

var btn9:SimpleButton = new title_btn();
addChild(btn9);
btn9.x = 362;
btn9.y = 216;
btn9.addEventListener(MouseEvent.MOUSE_DOWN, goto);
function goto(event:MouseEvent){
		trace(event.currentTarget.name);
}

and Here is my error message from the output dialogue: TypeError: Error #1006: value is not a function.
at Fam_fla::MainTimeline/goto()

I haven’t had any problems with eventListeners in the past, but I suspect that I am missing some fact or something about how they work-perhaps?
I truely appreciate any help that can be offered.

Thanks for your reply mattrock23. I have tried that a couple of times and I still receive the same error.

Yeah, I’ve got title_btn in the library, and it is designated to be exported for Actionscript.

The other examples of this error(That I found by googling and searching Kirupa) were used in classes, and the function being called by the eventListener needed to be static. the property static is only used in classes, so it doesn’t apply to my instance. I am coding on the mainTimeline.

ok, I am a moron. I didn’t post the actual code that I was having a problem with. The code I posted works, and then I took another look at the code I was having a problem with and found out that I was adding parenthesis to array.length, which calls an error.

this thread should be deleted.

I’m sorry to waste your time.