0 Replies Latest reply on Jul 28, 2010 10:51 AM by BKLEAL

    Module loaded from TabNavigator tab displays blank screen

    BKLEAL

      I have an application which is using the TabNavigator to manage the active view content.  The tabs are backed by individual VBox's which contain the
      mx:ModuleLoader commands to load the module swf's.  The application runs and the appropriate tabs are displayed.

       

      When clicking on the various tabs, I know that the Ready ModuleEvent is getting fired and that the module projects default mxml class is being loaded and executed.  However, the view content of the module is never displayed in the browser.

       

      The following is a clip from the code block:

       

              <mx:TabNavigator id="mainMenuTabBar" width="100%" height="100%" creationPolicy="auto" tabStyleName="tab">
                 
                  <mx:VBox id="moduleOneTab" label="ModuleOne" creationPolicy="auto" width="100%" height="100%">
                      <mx:ModuleLoader id="testLoader" url="testModuleOne.swf"

                              preinitialize="testLoader.applicationDomain=ApplicationDomain.currentDomain" />           
                  </mx:VBox>

       

                  <mx:VBox id="moduleOneTab" label="ModuleOne" creationPolicy="auto" width="100%" height="100%">
                       <mx:ModuleLoader id="testLoader" url="testModuleOne.swf"                                    
                                   preinitialize="testLoader.applicationDomain=ApplicationDomain.currentDomain" />           
                   </mx:VBox>

             </mx:TabNavigator>

       

      Any suggestions would be greatly appreciated.

       

      Brian