Modular Applications
Modular applications
Sometimes our flex application’s size becomes very large. Due to this, we are facing many problems such as bandwidth, network traffic and it will take more time to load. We have many ways to solve this problem such as
1. Do not embed the assets into the project.
2. Modules.
About Modules
Modules are the swf files which can be loaded and unloaded dynamically by an application. The user cannot run the modules independently in the browser or the flash player. But the user can share the modules in any number of applications.
Benifits of Modules
- Smaller initial download size of the SWF file.
- Shorter load time due to smaller SWF file size.
- Better encapsulation of related aspects of an application. For example, a “reporting” feature can be separated into a module that you can then work on independently.
- Any number of applications can share the modules.
Creating the Modules
To create the modules we should create seperate mxml or actionscript class and an application that uses the modules. We can create the modules in two ways, one is by using the mxml and by using the actionscript class.
Creating the modules by using the…


