Flex全局错误处理

来源:互联网 发布:三阶矩阵的逆矩阵公式 编辑:程序博客网 时间:2024/05/29 09:01

lex全局错误处理Global Error Handler在AIR 2.0和Flash Player 10.1中使用

protected function application1_applicationCompleteHandler(event:FlexEvent):void{if( !loaderInfo.hasOwnProperty("uncaughtErrorEvents") ){return;}else{loaderInfo.uncaughtErrorEvents.addEventListener(UncaughtErrorEvent.UNCAUGHT_ERROR, onUncaughtError);}}

原创粉丝点击