Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

17. Modules and Runtime Shared Libraries > 17.6. Use ModuleLoader to Load Modul...

17.6. Use ModuleLoader to Load Modules

Problem

You want to load modules into your Flex application.

Solution

Use the <mx:ModuleLoader> container to load modules into your application.

Discussion

The mx.modules.ModuleLoader class is a container that acts similarly to the mx.controls.SWFLoader component. It loads SWF files and adds modules to the display list of an application. ModuleLoader differs from SWFLoader in that it has a contract that dictates that the SWF file that is loaded implements IFlexModuleFactory. Compiled modules contain the IFlexModuleFactory class factory, which allows an application to dynamically load the modular SWF files at runtime without requiring the class implementations within the main application shell.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free 10-Day Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint