0 Replies Latest reply on Feb 10, 2008 7:03 AM by dafunk06

    preload modules before app starts?

    dafunk06
      Update: this code might actually achieve this?

      Currently my modules preload when the app starts which causes an initial delay if the user clicks the module beforei it has finished preloading.

      I would like to be able to preload the modules completely before the app starts so there is no delay at all (apart from the inital preloading of the app).

      At the moment I set the application to: preinitialize="preloadModules()"

      and then

      private function preloadModules():void {
      ModuleManager.getModule("mod1.swf").load();
      ModuleManager.getModule("mod2.swf").load();
      ModuleManager.getModule("mod3.swf").load();
      ModuleManager.getModule("mod4.swf").load();
      ModuleManager.getModule("mod5.swf").load();
      ModuleManager.getModule("mod6.swf").load();
      ModuleManager.getModule("mod7.swf").load();
      ModuleManager.getModule("mod8.swf").load();
      ModuleManager.getModule("mod9.swf").load();
      ModuleManager.getModule("mod10.swf").load();
      ModuleManager.getModule("mod11.swf").load();
      }
      Kind regards