PS:有人做出了这么有意思的东西,呵呵。我当然要试一下,单位的宽带是10M光纤的,多次的结果是170~470Kps。我汗~~
大家也来试一试,看看你们的是多少,报上来呀。
测试地址:http://www.klstudio.com/upload/test.html
源码下载:http://www.klstudio.com/upload/NetTest.zip
//方法调用说明;
stop();
import web800.util.ShowMsg;
//引用TestNet类;
import web800.util.TestNet;
//网络测试回调函数;
function testnet_hander(success:Boolean, rate:Number) {
if (success) {
showmsg.okAlert("网络速度:"+rate+"kps");
}else{
showmsg.okAlert("网络测试超时!");
}
}
var showmsg:ShowMsg = new ShowMsg();
//TestNet("测试文件地址","回调的函数")
var testnet:TestNet = new TestNet("http://210.52.223.8/demo/file.swf?id="+Math.random(),
testnet_hander);
//TestNet.test(超时时间"毫秒单位");
testnet.test(10000);
来自 Kinglong