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

后端 未结 2 1875
误落风尘
误落风尘 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. :)

提交回复
热议问题