Error calling method on NPObject!

Have you seen this error? If you work with Flash actionscript and Javascript, you probably have. It can be pretty frustrating the first time you see this error since it’s not very informative. In my experience, this happened when I was trying to communicate with actionscript via Javascript using ExternalInterface call. The problem was sure enough a security issue with Flash. The solution for “Error calling method on NPObject!” is to add:"");

Add this to the Flash file you’re communicating with. Keep in mind that is different from to Flash.

, , , ,