Packagecom.pcthomatos.ultraloader.interfaces
Interfacepublic interface ULPreloaderInterface

When specifying a custom preloader class in UltraLoader or UltraLoaderStn. This interface must be implemented. This allows your preloader class to properly consume load data.

See also

com.pcthomatos.ultraloader.UltraLoader
com.pcthomatos.ultraloader.UltraLoaderStn


Public Methods
 MethodDefined 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
Method detail
remove()method
public function remove():void

The 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):void

The 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.

Parameters
bytesLoaded: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.