Zurück   Flashforum > Flash > ActionScript > ActionScript 1

Antwort
 
LinkBack Themen-Optionen Ansicht
Alt 27-07-2006, 16:55   #1 (permalink)
Neuer User
 
Benutzerbild von velocity.
 
Registriert seit: May 2005
Beiträge: 310
Post Speedtest incl. Problem

Hi,

also ich habe einen Speedtest nachgestellt, ich versteh den auch soweit, nur in mein hirn will einfach nicht rein, warum getTimer() ausgerechnet durch die Zahl 10 geteilt werden muss, warum nicht 5 oder 20 ...und WIE kommt das Script dann auf die KB/s kommt, hier das script:

PHP-Code:
ifFrameLoaded (2) {
    
time 10/(getTimer()/1000);
    if (
Number(time)>100) {
        
connection "wow! what a fast connection .... No, I'm kidding ,it's in your cache... ;) ";
    } else if (
Number(time)<1) {
        
connection "Oh NO. A fossile .... a 14.4 Modem?????";
    } else if (
Number(time)<3) {
        
connection "huh.. a 28.8 Modem????  hmm....";
    } else if (
Number(time)<6) {
        
connection "you are on a 56k modem or you have a bad connection";
    } else if (
Number(time)<10) {
        
connection "i bet you have ISDN connection...";
    } else if (
Number(time)<30) {
        
connection "seems to be cable or ADSL ...";
    } else if (
Number(time)<100) {
        
connection "i bet you have T1 connection...";
    }

Vielen Dank schon einmal im Voraus und noch einen schönen Tag!



cYa
velocity.
velocity. ist offline   Mit Zitat antworten
Antwort

Lesezeichen

Themen-Optionen
Ansicht

Forumregeln
Es ist Ihnen nicht erlaubt, neue Themen zu verfassen.
Es ist Ihnen nicht erlaubt, auf Beiträge zu antworten.
Es ist Ihnen nicht erlaubt, Anhänge hochzuladen.
Es ist Ihnen nicht erlaubt, Ihre Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks sind an
Pingbacks sind an
Refbacks sind an



Alle Zeitangaben in WEZ +1. Es ist jetzt 07:23 Uhr.

Domains, Webhosting & Vserver von Host Europe
Unterstützt das Flashforum!
Adobe User Group


Copyright ©1999 – 2012 Marc Thiele