📄 basicfunc.as
字号:
//Created by Action Script Viewer - http://www.buraks.com/asv
class com.fivesix.BasicFunc
{
function BasicFunc () {
init();
}
function caculateUrl(userName) {
var _local4 = userName.length - 7;
var _local3 = userName.substr(0, _local4);
var _local2 = 0;
var _local1 = 0;
var _local5;
while (_local2 <= (_local4 - 1)) {
ascLevel_01 = ascLevel_01 + (_local3.charCodeAt(_local2) * _local2);
_local2++;
}
while (_local1 <= (_local4 - 1)) {
ascLevel_02 = ascLevel_02 + (_local3.charCodeAt(_local1) * ((_local1 * 2) + 1));
_local1++;
}
ascLevel_01 = ascLevel_01 % 30;
ascLevel_02 = ascLevel_02 % 30;
_local5 = ((ascLevel_01 + "/") + ascLevel_02) + "/";
return (_local5);
}
function getAscLevel(target) {
if (target == 1) {
return (ascLevel_01);
} else {
return (ascLevel_02);
}
}
static function disableBtn(arr) {
var _local1 = 0;
while (_local1 <= arr.length) {
arr[_local1].enabled = false;
arr[_local1]._alpha = 60;
_local1++;
}
}
static function enableBtn(arr) {
var _local1 = 0;
while (_local1 <= arr.length) {
arr[_local1].enabled = true;
arr[_local1]._alpha = 100;
_local1++;
}
}
static function getNowTime() {
var _local1 = new Date ();
var _local2 = (((((((((_local1.getFullYear() + "_") + (_local1.getMonth() + 1)) + "_") + _local1.getDate()) + "_") + _local1.getHours()) + "_") + _local1.getMinutes()) + "_") + _local1.getSeconds();
return (_local2);
}
static function getNowTime2() {
var _local1 = new Date ();
var _local2 = (((_local1.getFullYear() + ".") + (_local1.getMonth() + 1)) + ".") + _local1.getDate();
return (_local2);
}
function init() {
Stage.scaleMode = "noscale";
Stage.showMenu = false;
System.security.allowDomain("v.56.com", "v2.56.com");
Stage.align = "TL";
}
static var ascLevel_01 = 0;
static var ascLevel_02 = 0;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -