Check the Code Snippets panel - you can find all sorts of neat starters there. Here is the one for a hyperlink:
/* Click to Go to Web Page
Clicking on the specified symbol instance loads the URL in a new browser window.
Instructions:
1. Replace http://www.adobe.com with the desired URL address.
Keep the quotation marks ("").
*/
instance_name_here.addEventListener(MouseEvent.CLICK, fl_ClickToGoToWebPage);
function fl_ClickToGoToWebPage(event:MouseEvent):void {
navigateToURL(new URLRequest("http://www.adobe.com"), "_blank");
}
So for a local file - just put the path to the file in place of a URL.
... View more