5D艺术网首页
商城
|
资讯
|
作品
|
博客
|
教程
|
论坛
登录
注册
加为好友
发短消息
来自:
性别:秘密
最后登录:2007-09-22
http://yuheduo.5d.cn/
首页
|
新闻
|
话题
|
博客
|
相册
|
艺术作品
|
社交关系
|
留言板
|
社交圈
2005/07/09 | Actionscript帮你认识自己的系统!(附代码)
类别(Flash学习)
|
评论
(3)
|
阅读(234)
|
发表于 23:03
Actionscript帮你认识自己的系统!
---------------------------------
下面用System.capabilities 对象和Alert组件帮你认识自己的系统
代码如下
------------------------------------------------
import mx.controls.Alert;
Stage.scaleMode = "noScale";
getOS_btn.label="操作系统";
getOS_btn.onRelease = function() {
Alert.show("您是" add System.capabilities.os add "操作系统", "系统诊断", Alert.OK | Alert.CANCEL, null, "stockIcon", Alert.OK);
};
getScreen_btn.label="屏幕分辨率";
getScreen_btn.onRelease=function(){
Alert.show("您的屏幕分辨率为:"+System.capabilities.screenResolutionX+"×"+System.capabilities.screenResolutionY, "系统诊断", Alert.OK | Alert.CANCEL, null, "stockIcon", Alert.OK);
}
getSDPI_btn.label="屏幕分辨率点数";
getSDPI_btn.onRelease=function(){
Alert.show("您的屏幕分辨率(每英寸的点数)为:"+System.capabilities.screenDPI+"像素", "系统诊断", Alert.OK | Alert.CANCEL, null, "stockIcon", Alert.OK);
}
getVision_btn.label="Flash Player的版本";
getVision_btn.onRelease=function(){
Alert.show("您的Flash Player的版本为:"+System.capabilities.version, "系统诊断", Alert.OK | Alert.CANCEL, null, "stockIcon", Alert.OK);
}
getLanguage_btn.label="系统的语言";
getLanguage_btn.onRelease=function(){
Alert.show("您的系统语言为:"+System.capabilities.language, "系统诊断", Alert.OK | Alert.CANCEL, null, "stockIcon", Alert.OK);
}
getMan_btn.label="Flash的制造商";
getMan_btn.onRelease=function(){
Alert.show("您的Flash的制造商为:"+System.capabilities.manufacturer, "系统诊断", Alert.OK | Alert.CANCEL, null, "stockIcon", Alert.OK);
}
0
评论
Comments
日志分类
首页
[149]
blog记事
[7]
Flash学习
[85]
教学记忆
[21]
娱乐影音
[9]
我的收藏
[27]
PhotoShop学习
[0]