You are correct about the two lines being necessary. One involves the assignment of the event listener with identification of the handler function in it:
humpy.addEventListener(MouseEvent.CLICK, onClick);
and the other is the actual event handler function
function onClick(....
The duplication error will arise when you have two functions sharing the same name...
function onClick(....
function onClick(....
Unfortunately I can't see the history of the posting while writing this, so I don't know if it's possible that some other function has been duplicated, rather than the one that is being focused on so far.
To answer your original question, and to rule in/out whether or not that code is the problem, change the code as follows:
thumpy.addEventListener(MouseEvent.CLICK, clickThumpy);
function clickThumpy(evt:MouseEvent):void {
var url:String = "http://www.thumpersf.com";
var req:URLRequest = new URLRequest(url);
navigateToURL(req, "_blank");
}
(don't sweat shortcutting the code... if you're new to AS3 it's better to learn it realizing that there are three distinct parts to linking a URL as you have displayed... you can drive with one hand after you get some experience using two)