When your have a big SWF running in web or mobile, it makes a time to be loaded, so you should make a preloader for your SWF. This an example to show you how you can create a preloader for a CitrusEngine with Starling app.
-
Extend
flash.display.MovieClip
when creating the document class (on Example: CitrusPreloader.as). -
Add this argument to your ActionScript Compiler to put a StarlingCitrusEngine class on frame 2.
-frame two Main
-
Override the handleAddedToStage handler to setUpStarling.
For more detailed explanation see the comments in the example code .
Ressources: