语录提交--登陆--注册--论坛交流--站长博客

Fms教程14 System对性

[作者:来自网络][日期:2007-12-28][导航:Flash教程 >> Fms2 >> Fms教程14 System对性]
  系统对象是Flash的一个顶层对象,主要用来设置系统参数和安全定义。
常用属性有:
System.useCodepage 是否使用网页字符格式,默认为false 格式是utf-8
System.exactSettings 访问本地设置是否使用超级域匹配规则 Flash7新增属性


常用的方法有:
System.showSettings( [panel] ) 显示系统设置对话框
0 隐私设置
1 本地存储设置
2 麦克风设置
3 摄像机设置
为空则显示用户最近设置

System.setClipboard( string ) 设置剪贴板文字 Flash7以后支持
用指定的字符串替换当前的剪贴板内容


system对象也具有onStatus事件响应,我们看下下面的代码:
01 : // 定义响应方法
02 : System.onStatus = function( genericError )
03 : {
04 : // Your script would do something more meaningful here
05 : trace('An error has occurred. Please try again.');
06 : }
07 :
08 : // 创建一个 NetStream 对象的方法
09 : // 如果NetStream 对象返回错误
10 : // System.onStatus 将被触发
11 :
12 : videoStream_ns.onStatus = function(infoObject) {
13 : if (infoObject.code == 'NetStream.Play.StreamNotFound') {
14 : trace('Could not find video file.');
15 : }
16 : }

[文章热度:]


上一页:Fms教程 13 video对象

下一页:Fms教程15 客户端信息

最新话题

网站导航

搜索

网站公告


Copyright 2007 51as.com. Some Rights Reserved.
鄂ICP备07003189号

Powered by: KingCMS 5.0.1.0217