The Preloader class is used by the SystemManager to monitor
the download and initialization status of a Flex application.
It is also responsible for downloading the runtime shared libraries (RSLs).
The Preloader class instantiates a download progress bar,
which must implement the IPreloaderDisplay interface, and passes download
and initialization events to the download progress bar.
Called by the SystemManager to initialize a Preloader object.
Parameters
showDisplay:Boolean — Determines if the display class should be displayed.
displayClassName:Class — The IPreloaderDisplay class to use
for displaying the preloader status.
backgroundColor:uint — Background color of the application.
backgroundAlpha:Number — Background alpha of the application.
backgroundImage:Object — Background image of the application.
backgroundSize:String — Background size of the application.
displayWidth:Number — Width of the application.
displayHeight:Number — Height of the application.
libs:Array (default = null) — Array of string URLs for the runtime shared libraries.
sizes:Array (default = null) — Array of uint values containing the byte size for each URL
in the libs argument
rslList:Array (default = null) — Array of object of type RSLItem and CdRSLItem.
This array describes all the RSLs to load.
The libs and sizes parameters are ignored and must be set to null.
resourceModuleURLs:Array (default = null) — Array of Strings specifying URLs
from which to preload resource modules.
applicationDomain:ApplicationDomain (default = null) — The application domain in which
your code is executing.
registerApplication
()
method
public function registerApplication(app:IEventDispatcher):void
Language Version :
ActionScript 3.0
Product Version :
Flex 3
Runtime Versions :
Flash Player 9, AIR 1.1
Called by the SystemManager after it has finished instantiating
an instance of the application class. Flex calls this method; you
do not call it yourself.