0 Replies Latest reply on May 3, 2010 2:28 AM by mohinder_ghumman

    How to load modules in application but to call them at appropriate time

    mohinder_ghumman Level 1

      hi i want

      to call module 2 on click event of a button on module 1


      what ia m trying to do is i am preloading the modules using



      url="mod1.swf" id="m1"/>



      <mx:ModuleLoader url="mod2.swf" id="m2"/>




      but this was laoding all the modules one after another in the main application


      but then i tried finding sloution in



      id="tops" width="100%" height="100%">



      <mx:ModuleLoader id="test" url="mod1.swf" width="100%" height="100%"/>


      <mx:ModuleLoader id="modPrint" url= "mod2.swf" width="100%" height="100%"/>






      this was serving my purpose of loading the modules and hiding them till i call them


      Can some body suggest some better way of doing it ......... please dont tell me preloading ....coz i want to preload more then 20 modules