6 Replies Latest reply on Jul 20, 2011 10:07 AM by Flex harUI

    Get Module from ModuleLoader

    _spoboyle Level 4

      I am using the code below to load my module


      var loader:ModuleLoader = new ModuleLoader();
      loader.addEventListener(ModuleEvent.READY, moduleLoaded);


      private function moduleLoaded(event:ModuleEvent):void
           var loader:ModuleLoader = event.target as ModuleLoader;
           loader.removeEventListener(ModuleEvent.READY, moduleLoaded);


      but how can i get hold of the actual Module rather than the ModuleLoader?