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);
}
---------------------------------
下面用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);
}
回复Comments
作者:
{commentrecontent}