易截截图软件、单文件、免安装、纯绿色、仅160KB

Flex MD5 工具类

package util
{
public class MD5
{
private var hexcase:int = 0;
private var strsize:int = 8;
static private var md5:MD5;
static public function getInstance():MD5
{
if(!md5)
{
md5 = new MD5()
}
return md5;
}
public function getMD5(s:String):String
{
return binl2hex(core_md5(str2binl(s), s.length*strsize));
}
private function core_md5(x:Array, len:int):Array
{
x[len >> 5] = (x[len >> 5]) | (128 << len%32);
x[(((len+64) >>> 9) << 4)+14] = len;
var a:int = 1732584193;
var b:int = -271733879;
var c:int = -1732584194;
var d:int = 271733878;
var i:int = 0;
while (i
{
var olda:int = a;
var oldb:int = b;
var oldc:int = c;
var oldd:int = d;
a = md5_ff(a, b, c, d, x[i+0], 7, -680876936);
d = md5_ff(d, a, b, c, x[i+1], 12, -389564586);
c = md5_ff(c, d, a, b, x[i+2], 17, 606105819);
b = md5_ff(b, c, d, a, x[i+3], 22, -1044525330);
a = md5_ff(a, b, c, d, x[i+4], 7, -176418897);
d = md5_ff(d, a, b, c, x[i+5], 12, 1200080426);
c = md5_ff(c, d, a, b, x[i+6], 17, -1473231341);
b = md5_ff(b, c, d, a, x[i+7], 22, -45705983);
a = md5_ff(a, b, c, d, x[i+8], 7, 1770035416);
d = md5_ff(d, a, b, c, x[i+9], 12, -1958414417);
c = md5_ff(c, d, a, b, x[i+10], 17, -42063);
b = md5_ff(b, c, d, a, x[i+11], 22, -1990404162);
a = md5_ff(a, b, c, d, x[i+12], 7, 1804603682);
d = md5_ff(d, a, b, c, x[i+13], 12, -40341101);
c = md5_ff(c, d, a, b, x[i+14], 17, -1502002290);
b = md5_ff(b, c, d, a, x[i+15], 22, 1236535329);
a = md5_gg(a, b, c, d, x[i+1], 5, -165796510);
d = md5_gg(d, a, b, c, x[i+6], 9, -1069501632);
c = md5_gg(c, d, a, b, x[i+11], 14, 643717713);
b = md5_gg(b, c, d, a, x[i+0], 20, -373897302);
a = md5_gg(a, b, c, d, x[i+5], 5, -701558691);
d = md5_gg(d, a, b, c, x[i+10], 9, 38016083);
c = md5_gg(c, d, a, b, x[i+15], 14, -660478335);
b = md5_gg(b, c, d, a, x[i+4], 20, -405537848);
a = md5_gg(a, b, c, d, x[i+9], 5, 568446438);
d = md5_gg(d, a, b, c, x[i+14], 9, -1019803690);
c = md5_gg(c, d, a, b, x[


相关文档:

Flex 字符串处理汇总


1.连接字符串:连接字符串指两个及两个以上的字符串合并成为一个字符串.
1.1."+"操作符连接字符串
格式:字符串1+字符串2+...;
//结果为"Thisworks"
var example:String="This"+"works";
//结果为"There are 24 people"
var attendance:int=24;
var output:String="There are&nb ......

Flex应用启动背后的故事

转载自:http://www.blogjava.net/usherlight/archive/2007/04/17/111365.html
首先介绍一下SystemManager. SystemManager是Flex应用的主控者, 它控制着应用窗口, Application实例, 弹出窗口, cursors, 并管理着ApplicationDomain中的类. SystemManager是FlashPlayer实例化的第一个类, 它存储了主应用窗口的大小和位置信息 ......

Flex 与 Asp.Net 通过 Remoting 方式进行通讯

Flex
与 Asp.Net 通过 Remoting 方式进行通讯
Flex 与 Asp.Net 通过 Remoting 方式进行通讯 (一)http://hi.baidu.com/tsengyuen/blog/item/644e98a3353f7287471064ef.html
Flex 与 Asp.Net 通过 Remoting 方式进行通讯 (二)http://hi.baidu.com/tsengyuen/blog/item/af02730d58d6d7266059f3e8.html
Flex 与 Asp.Net 通 ......

flex通过blazeds与java通信的小例子

很简单的小例子,适合初学者理解
1,JavaFlex.java
package flex;
public class JavaFlex {
public String helloJavaFlex(String name) {
return name;
}
}

2,remoting-config.xml
<?xml version="1.0" encoding="UTF-8"?>
<service id="remoting-service" class="flex.messaging.services.Remo ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号