About loading sub-applications
Flex lets you load and unload sub-applications in a main application. Reasons:
- Reduce the size of the main application
- Encapsulate related functionality into a sub-application
- Create reusable sub-applications that can be loaded into different applications
- Integrate third-party applications into your main application
Level of interoperability
Types of loading
- Stage Access to the stage from the sub-application is limited to some stage properties and methods.
- Mouse You cannot receive mouse events from objects in other security domains.
- Pixels Applications cannot access the pixels drawn in applications that are in other security domains.
- Properties While applications can get references to objects in other security domains, avoid doing this for security reasons. Some properties are restricted, such as the Stage or any parent of a DisplayObject that another application instantiates.
Note: When compiling each of these types of applications, you should include the MarshallingSupport class into the main application and sub-applications. You do this with the includes compiler argument, as the following example shows:
-includes=mx.managers.systemClasses.MarshallingSupport




