Problem with my save button

I’m having a bit of an issue and I don’t know how to fix it since I’m fairly new at actionscript… I’m more of a css girl.

I’m making a gallery with a play, pause and save button. There’s 10 different pictures and it goes through each image every 5 seconds and I want the user to be able to save whichever image he or she wants to. Problem is I can’t get my save button (which is an image) to work with each image. I’ve tried duplicating the save button and changing the name and instance name but I keep getting the duplicate function error and all my buttons won’t work after that. All my actions are in one layer. Don’t know if this matters or not but my actionscript for the save button(s) since I duplicated them are still on one layer but on the frames where each image appears. The image is say on frame 30 on 1.jpg layer, the code is on frame 30 in the actions layer. The other image is on frame 90 on 2.jpg layer, the code is on frame 90 in the actions layer.

How do I go about fixing it? I really have no idea how to. Is it possible to fix it?

Here’s my code:


btn_save.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
function mouseDownHandler(event:MouseEvent):void {
    navigateToURL(new URLRequest("1.pdf"));
}



btn_save2.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
function mouseDownHandler(event:MouseEvent):void {
    navigateToURL(new URLRequest("2.pdf"));
}