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.