Over 10 years of community discussion and knowledge are maintained here as a read-only archive.
The main MovieClip has the symbols for the splash screen and the player's stuff, and it has an instance of an empty MovieClip called level_mc on the stage. The splash screen is all Flash with several MCs animating on their own timelines without assistance from PureMVC.When the user hits the Play button we will load the appropriate SWF file for the current level which has the scrolling background and the boss and defender assets. GameFacade has a startup() method (see this post: http://forums.puremvc.org/index.php?topic=85.0) which the main MovieClip calls on frame 1, passing a reference to itself.GameFacade.startup() sends the notification that triggers StartupCommand to instantiate GameStateProxy, GameHistoryProxy, GameClipMediator and LevelClipMediator. GameStateProxy, in addition to tracking score and such, generates the name of the SWF to load based upon the current game level. That level is pulled from the local shared object by the GameHistoryProxy and defaults to if you've played before or 1 otherwise. There are GameStateVO and GameHistoryVO that hold the data these two proxies work with.In StartupCommand, LevelClipMediator is instantiated and passed a reference to level_mc as its viewComponent. When the user hits the play button, LevelClipMediator hears about it and replaces its view component using a MovieClipLoader instance it created in its constructor. It does an addListener(this) to the MovieClipLoader and has an onLoadError method to handle loading faults.