Global Error Handler for Flash Player 10.1 not working

前端 未结 4 1661
萌比男神i
萌比男神i 2021-01-07 07:19

Trying to implement the new FP 10.1 Global error handler into my projects but no matter what I do any uncaught error will still show up the Exception window (both in debug a

4条回答
  •  猫巷女王i
    2021-01-07 07:55

    I had the same issue as above - I was referencing stage.loadInfo, believing that as that references the stage, it would capture all uncaught errors. However, that doesn't work, you have to actually follow grapefukt's suggestion verbatim: On the actual base display object, place the code

    loaderInfo.uncaughtErrorEvents.add...

    When you try to place onto stage.loaderInfo or frame.loaderInfo, it has no effect.

    In my case, I had to place it in the class that extended the base display object. Very Odd.

提交回复
热议问题