
click to enlarge
Click the link object that you wish to add your link to and press the "F9" key on your keyboard to open the ActionScript window. On the right you will see a listing of the various script elements that you can include, and on the right will be the empty area where your script will be written. Start your script by letting Flash know that it needs to check for mouse clicks by typing the following:
link_object_name.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
Make sure that "link_object_name" is the name that you gave to your object when you converted it to a symbol. Press the "Enter" key, then type the following on the next line:
function mouseDownHandler(event:MouseEvent):void
Press "Enter" again, then add an open bracket (the "{" symbol) on the third line. Press "Enter." On the fourth line, type:
navigateToURL(new URLRequest(http://www.yourwebsite.com));
Set the "yourwebsite.com" text to the address that you want your link to direct users to. Press the "Enter" key one last time, then add a closed bracket (the "}" symbol) to finish your script. When you run your Flash movie or game, the link object will now direct people to the website that you have created a link to.