# 1180 Error with event listener

**URL:** <https://forum.kirupa.com/t/1180-error-with-event-listener/258173>\
**Category:** flash\
**Created:** [April 21, 2008, 4:38pm UTC](https://forum.kirupa.com/t/1180-error-with-event-listener/258173 "2008-04-21T16:38:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![vivaretro](https://avatars.discourse-cdn.com/v4/letter/v/a3d4f5/32.png) [@vivaretro](https://forum.kirupa.com/u/vivaretro)\
**Post date:** [April 21, 2008, 4:38pm UTC](https://forum.kirupa.com/t/1180-error-with-event-listener/258173/1 "2008-04-21T16:38:41Z")

</div>

I’m trying make a simple action script that when a county  
is clicked I get a trace return telling me the county was clicked.  
I have a .fla file named Map that has a symbol named “Morrow” in it,  
and a .as file named Morrow.as in the same folder with the following  
code:

package {

```
import flash.display.MovieClip;
import flash.events.MouseEvent;

public class Morrow extends MovieClip {
	addEventListener(MouseEvent.CLICK , Morrow ); 
	
	public function Morrow(event:MouseEvent):void 
	{
		trace ("Morrow is clicked");
		
	}
}

```

}

I keep getting a 1180: Call to a possibly undefined method addEventListener.
