All projects using PureMVC must have only one ApplicationFacade class to control all process. Along with ApplicationFacade is StartupCommand, which registers some Proxies and Mediators.
Example with a ImageSlideshow project :
All you need are :
MVCProject.as ---> init ApplicationFacade
ApplicationFacade ---> excute StartupCommand ---> register SiteDataProxy, StageMediator with viewComponent is Stage.
SiteDataProxy ---> load external xml file, sendNotification to StageMediator
StageMediator ---> register ContainerMediator with viewComponent is Container sprite.
Very interesting.
No comments:
Post a Comment