What code are you writing that is causing that error message? I know you said "same code", but if that's the case you'd have a namespace error.
I'm trying to make another linked button by writing:
function handleLink( pEvent :MouseEvent ):void
if(pEvent.target == linkedinbtn )
var request:URLRequest = new URLRequest( "http://www.linkedin.com/in/sofimarshall );
navigateToURL( request, "_blank" );
linkedinbtn.addEventListener(MouseEvent .CLICK, handleLink );
Should I be doing something else?
If that is a separate function, you shouldn't use the same function name. Beyond that, there is nothing wrong with the code, so it is either the object you are using or something else.
Thanks! It was that I had the same function name for the two separate functions.