Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

如何測試flash網頁速度?

如何在flash裡面測試放在網際網路時的速度?

因為在影片中有看過人使用過 一直找不到...

Update:

不是我是指說flash中不是有的地方能測檔案速度??

我記得可以調整頻寬大小來計算出放置網際網路時的讀取時間

1 Answer

Rating
  • 1 decade ago
    Favorite Answer

    你是說 FPS (每秒張數)

    AS2.0:

    this.onEnterFrame = function() {

    if (this.lastTimer != undefined) {

    var timerDiff:Number = getTimer()-this.lastTimer;

    var fps:Number = int(10000/timerDiff)/10;

    trace(fps);

    }

    this.lastTimer = getTimer();

    };

    AS3.0:

    import flash.utils.getTimer;

    import flash.display.Sprite;

    this.addEventListener(Event.ENTER_FRAME,GetTimerExample);

    function GetTimerExample(e:Event):void {

    if(this.lastTimer != undefined){

    var timerDiff:Number = getTimer()-this.lastTimer;

    var fps:Number = int(10000/timerDiff)/10;

    trace("fps="+fps);

    };

    this.lastTimer=getTimer()

    }

    若還有疑問或需要協助歡迎至我詳細資料blog或msn中留言!

    2010-07-22 12:19:43 補充:

    你開啟flash後, 按ctrl+enter 會出現 swf 測試播放

    上面有一排 檢視-> 串流圖表 & 影格圖表 (頻寬設定) 這些都打開

    就會看到你要的

Still have questions? Get your answers by asking now.