Error 1120 help please?
I am new to flash, and am having some troubble with my button. I need it to open up an email client when clicked on, I created a small button then converted it to a button, gave it a name in the properties pannel, then created a new layer, named actions and ented the code as follows, and now I keep getting the error code that says "Scene 1 layer 'actions', frame 1 line 3 1120: Access of undefined property contact" contact is the name of my button..... below is my code
import flash.events.Event;
import flash.net.URLRequest;
CONTACT.addEventListener(MouseEvent.CLICK, emailFunc);
function emailFunc(event:Event):void
{
var link:URLRequest = new URLRequest("mailto:lea.20@live.com");
navigateToURL(link);
}