Use Try/Catch in ActionScript
来源:互联网 发布:svnchina mac 编辑:程序博客网 时间:2024/05/22 12:43
当使用browse()方法浏览本地文件时,如果之前已经打开了一个文件浏览对话框,则会出错;同时如果用户的浏览器配置为拒绝浏览本地文件时,同样会出错,此时最好采用try/catch 来监视错误。用法如下:
try { fileReference.browse( );}catch (illegalOperation:IllegalOperationError) { // code to handle error}
- Use Try/Catch in ActionScript
- When to use assert() and when to use try catch?
- using try catch finally in SQL
- try catch
- try{} catch{}
- try catch
- try...catch
- try{} catch(...){}
- try catch
- try-catch
- try catch
- try-catch
- try catch
- try catch
- try catch
- try catch
- try catch
- try {...} catch (){....}
- 手动解决ravmon.exe病毒
- 第三代google排名搜索引擎技术与P2P
- CTE的使用方法和注意事项
- 手动查杀oduxyym.exe和veckdld.exe
- asp.net 中如何加入页面的背景音乐
- Use Try/Catch in ActionScript
- #ifndef的主要作用是什么
- 微软发布XNA游戏专业级编程模版——极品飞车!
- 关于swing线程的例子
- 使用Microsoft Live Writer离线写blog
- 使用ASP.NET跟踪Web应用程序
- Use Array
- Readfile vs include 性能比较
- HTML中小meta的大作用