xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
creationComplete="preloadModules()">
import mx.events.ModuleEvent;
import mx.modules.ModuleManager;
import mx.modules.IModuleInfo;
private function preloadModules():void {
/* Get a reference to the module's interface. */
var info:IModuleInfo = ModuleManager.getModule("movies/BarChartModule.swf");
info.addEventListener(ModuleEvent.READY, modEventHandler);
/* Load the module into memory. The module will be
displayed when the user navigates to the second
tab of the TabNavigator. */
info.load();
}
private function modEventHandler(e:ModuleEvent):void {
trace("module event: " + e.type); // "ready"
}
paddingLeft="10" paddingRight="10" paddingBottom="10">
text="Select the tabs to change the panel." />
creationPolicy="auto">