Super amateur question follow-up (URL help needed)
I neglected to say in a previous post that I actually have five images in the flash animation that need to link to web pages.
I duplicated the code that worked on one image. Now I get an error saying there are duplicate function definitions. Here is the code I have added which I hoped would work for three images. It doesn't. Your help is greatly appreciated.
bfcSyringe_mc.addEventListener(MouseEvent.CLICK,onClick);
function onClick(evt:Event):void {
var targetURL:URLRequest = new URLRequest("http://hodentalcompany.com/pages/syringe.html");
navigateToURL(targetURL, "_self");
}
fpr_mc.addEventListener(MouseEvent.CLICK,onClick);
function onClick(evt:Event):void {
var targetURL:URLRequest = new URLRequest("http://hodentalcompany.com/pages/fpr.html");
navigateToURL(targetURL, "_self");
}
sandTrap_mc.addEventListener(MouseEvent.CLICK,onClick);
function onClick(evt:Event):void {
var targetURL:URLRequest = new URLRequest("http://hodentalcompany.com/pages/sand.html");
navigateToURL(targetURL, "_self");
}