home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Esportes / CrossingCup.swf / scripts / __Packages / Application.as next >
Text File  |  2007-12-11  |  700b  |  23 lines

  1. class Application
  2. {
  3.    function Application(_mcroot)
  4.    {
  5.       SoundManager.ins().loadSounds();
  6.       EventCenter.access().addEventListener("resumeSite",this);
  7.       _global.__DISPATCH = Application._dispatchEventToController;
  8.       _global.AppStarted = true;
  9.       this.mcRoot = _mcroot;
  10.       FileManager.ins().loadList("teamdata.xml");
  11.    }
  12.    function resumeSite()
  13.    {
  14.       EventCenter.access().removeEventListener("resumeSite",this);
  15.       var _loc2_ = new CNavigationStateManager(this.mcRoot);
  16.       _loc2_.changeAppState(CNavigationStateManager.AS_INTRO);
  17.    }
  18.    static function _dispatchEventToController(o)
  19.    {
  20.       EventCenter.access()._dispatchEvent(o);
  21.    }
  22. }
  23.