| Package | com.pcthomatos.ultraloader.interfaces |
| Interface | public interface ULPreloaderInterface |
See also
| Method | Defined by | ||
|---|---|---|---|
|
remove():void
The remove Method is called once the preloading is complete.
| ULPreloaderInterface | ||
|
update(bytesLoaded:uint, bytesTotal:uint, displayProgress:Boolean):void
The update method gets called by Ultraloader until the loading process has completed.
| ULPreloaderInterface | ||
| remove | () | method |
public function remove():voidThe remove Method is called once the preloading is complete. It is up to your class to properly remove the preloader from the display list (with or without a animation / delay). Garbage Collection is handle by UltraLoader / UltraLoaderStn.
| update | () | method |
public function update(bytesLoaded:uint, bytesTotal:uint, displayProgress:Boolean):voidThe update method gets called by Ultraloader until the loading process has completed. UltraLoader handles the centering of your custom preloader class This interface must be implemented by all custom preloaders.
ParametersbytesLoaded:uint — The number of bytes loaded.
|
|
bytesTotal:uint — The total number of bytes.
|
|
displayProgress:Boolean — displayProgress This is a flag for the 2 phases of ultraloader. The flag will be passed in as false while the byte total is being collected.
Once the total number bytes to be loaded is collected, then the flag switches to true. At which point the actual bytes begin loading.
This allows you to control when actually display loading progress as opposed to byteTotal accumulation.
|