0 Replies Latest reply on Jun 1, 2010 7:55 AM by Darrell Loverin

    [svn:fx-trunk] 16375: SparkDownloadProgressBar fixes.

    Darrell Loverin Level 4

      Revision: 16375

      Revision: 16375

      Author:   dloverin@adobe.com

      Date:     2010-06-01 07:55:16 -0700 (Tue, 01 Jun 2010)

      Log Message:


      SparkDownloadProgressBar fixes.



      Reset _startTime in initProgressHandler() so the elapsedTime check  in showDisplayForInit() is relative to when init started, not the start of the download. This keeps the download progress bar from popping up just before the application loads.



      If an rsl size is zero then provide an average rsl size so we initially have a rough estimate of how much we have to download. Until an rsl actually starts to load its size will be zero. So initially the total download size is just the application size. Then as the rsls start to load the total download size continues to increase but the progress bar is already at 100%. Providing an rsl estimate gives the progress bar something to move forward to. For small applications the progress bar didn?\226?\128?\153t used to show up even when the 700 ms threshold had elapsed.


      QE notes: None.

      Doc notes: None.


      Reviewer: Glenn

      Tests run: checkintests, Mustella DownloadProgressBar

      Is noteworthy for integration: No


      Modified Paths:



          flex/sdk/trunk/frameworks/projects/framework/src/mx/preloaders/SparkDownloadProgressBar.a s