Revision: 16375
Revision: 16375
Author: dloverin@adobe.com
Date: 2010-06-01 07:55:16 -0700 (Tue, 01 Jun 2010)
Log Message:
***********
SparkDownloadProgressBar fixes.
SparkDownloadProgressBar:
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.
DownloadProgressBar:
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.
Bugs:
Reviewer: Glenn
Tests run: checkintests, Mustella DownloadProgressBar
Is noteworthy for integration: No
Modified Paths:
**************
flex/sdk/trunk/frameworks/projects/framework/src/mx/preloaders/Preloader.as
flex/sdk/trunk/frameworks/projects/framework/src/mx/preloaders/SparkDownloadProgressBar.a s