ExternalInterface.addCallback only takes 2 arguments. It shouldn't even compile the way you have it there. Remove the "this" argument.