Load modules when the user navigates to the appropriate tabs in TabNavigator
<?xml version="1.0"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"> <mx:Panel title="Module Example" height="90%" width="90%"> <mx:TabNavigator id="tn" width="100%" height="100%" creationPolicy="auto"> <mx:VBox id="vb1" label="Column Chart Module"> <mx:Label id="l1" text="a.swf"/> <mx:ModuleLoader url="a.swf"/> </mx:VBox> <mx:VBox id="vb2" label="Bar Chart Module"> <mx:Label id="l2" text="a.swf"/> <mx:ModuleLoader url="a.swf"/> </mx:VBox> </mx:TabNavigator> </mx:Panel> </mx:Application>