Javascript -> Flash throwing “Error calling method on NPObject”

后端 未结 2 1876
误落风尘
误落风尘 2021-02-08 03:03

I\'m trying to call a Flash (AS3) function from Javascript. When the code runs, I get the error \"Error: uncaught exception: Error calling method on NPObject!\" From my day\'s

相关标签:
2条回答
  • 2021-02-08 03:39

    I found that by installing the Debugging version of the flash player from Adobe's site, I'd get a dialog box with the actual flash exception in it instead of the NPObject error, so this might be a helpful first step in figuring out what's actually going on.

    In my case it looks like somehow, there is an incorrect number of arguments getting passed, and I'm not sure how this is happening (intermittently), but that's for another question. :)

    0 讨论(0)
  • 2021-02-08 03:41

    The answer I found was that it throws that error for many reasons. Mine was that I was not sending in the correct number of arguments for the function it was calling.

    0 讨论(0)
提交回复
热议问题