Whoever sent me the link for the preloader docs, awsome. One question,
no what type of preloader I use, it says downloading, then
initaliazting, then the progress bar only gets to about 65% and then
my site loads. why is that?
// code
package com.preloader {
import mx.preloaders.*;
import flash.events.ProgressEvent;
public class DownloadProgressBarSubClassMin extends
DownloadProgressBar {
public function DownloadProgressBarSubClassMin() {
super();
// Set the download label.
downloadingLabel="Downloading Portfolio..."
// Set the initialization label.
initializingLabel="Initializing Portfolio..."
// Set the minimum display time to 2.5 seconds.
MINIMUM_DISPLAY_TIME=2500;
}
// Override to return true so progress bar appears
// during initialization.
override protected function
showDisplayForInit(elapsedTime:int, count:int):Boolean {
return true;
}
// Override to return true so progress bar appears during
download.
override protected function
showDisplayForDownloading(elapsedTime:int,
event:ProgressEvent):Boolean {
return true;
}
}
}