
click to enlarge
Select your frame in the timeline, then press the F9 button to open the ActionScript window. You'll see a list of possible commands on the left side and a large white area with a number "1" in it. This large white area is where your ActionScript scripting will go, and the "1" indicates the line number that you are on. If you've worked with older versions of Flash but haven't done any ActionScript 3.0 scripting in Flash CS3, CS4, or CS5, this part may be a little different than you're used to; the scripting required to add a link has changed a bit. It's not any more difficult to understand than the old ActionScript commands, though.
Type the following into the scripting window, making sure that you press the "Enter" key after every line:
item_name.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
function mouseDownHandler(event:MouseEvent):void
{
navigateToURL(new URLRequest(mailto:address@desired_domain.com));
}
Take note of the items in italics; "item_name" should be the name of the button that you created previously, and the email address after the "mailto:" command should be the email address that you want the button to be linked to. Save your Flash file and try running a scene with your button in it; a click on the button will open the email handler of your computer's preferred browser.