10 Replies Latest reply on May 21, 2010 3:36 PM by Darrell Loverin

    READY event not firing in module (FB4)

    freevryheid

      Hi guys

       

      Sorry for posting all this code but I'm unsure how to get my point across otherwise.

       

      The following block of code loads modules when a context menu is selected. The modules are compiled in the same project as the main application. Each module includes a "modInit" function that is called when the module is READY. The problem is that one of the modules extends a TitleWindow and the READY event is never fired (I checked while debugging). Consequently the module never inits.Another module that calls an Alert.show dialog loads and inits without a problem.

       

      Are titlewindows a no go in Flex 4 - I noticed a post somewhere that indicated s:Panels are prefered. This problem has been frustating to resolve so any pointers or help is appreciated.

       

      Thanks in advance,

      Andre

       

       

                      for each (menuitem in cm.customItems) {
                          menuitem.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT,
                              function(evt:ContextMenuEvent):void {
                                  var mod:ModuleLoader = new ModuleLoader();
                                  mod.url="mod/"+FindMenuFile(configMenus,evt.currentTarget.caption)+".swf";
                                  mod.addEventListener(ModuleEvent.READY,
                                      function(e:Event):void {
                                          var ichild:IModuleInterface = e.target.child as IModuleInterface;
                                          ichild.modInit();
                                      }
                                  );
                                  mod.addEventListener(TxCIT.txEvent.UNLOADMOD,
                                      function(e:txEvent):void {
                                          removeModule(mod);
                                      }
                                  );
                                  modArray.push(mod);
                                  createModule(mod);
                              }
                          );
                      }

       

      Here's the module with the TitleWindow:

       

      <comp:ModuleTitleWindow xmlns:fx="http://ns.adobe.com/mxml/2009"
                                 xmlns:s="library://ns.adobe.com/flex/spark"
                                 xmlns:mx="library://ns.adobe.com/flex/mx"
                              xmlns:comp="TxCIT.*"
                                 width="400" height="300"
                              close="closeHandler(event);"
                              implements="TxCIT.IModuleInterface">
          <fx:Declarations>
          </fx:Declarations>
          <fx:Script>
              <![CDATA[
                  import TxCIT.*;
                 
                  import mx.core.FlexGlobals;
                  import mx.events.CloseEvent;
                  import mx.managers.PopUpManager;
                 
                  public function modInit():void {
                      trace("modCoord init ...");
                      this.title="Coordinates";
                      PopUpManager.addPopUp(this, FlexGlobals.topLevelApplication as DisplayObject, false);
                      PopUpManager.centerPopUp(this);
                  }

       

                  private function closeHandler(e:CloseEvent):void {
                      PopUpManager.removePopUp(this);
                      modExit();
                  }
                 
                  private function modExit():void {
                      var params:Object;
                      var evt:txEvent=new txEvent(txEvent.UNLOADMOD,params,true);
                      trace("modCoord ...exit.");
                      dispatchEvent(evt);
                  }

       

              ]]>
          </fx:Script>
      </comp:ModuleTitleWindow>

       

       

      Here's ModuleTitleWindow:

       

      package TxCIT {

       

          [Frame(factoryClass="mx.core.FlexModuleFactory")]

       

          import spark.components.TitleWindow;

       

          public class ModuleTitleWindow extends TitleWindow {
             
              public function ModuleTitleWindow() {
                  super();
              }
             
          }
      }

       

      and here's the interface:

       

      package TxCIT {
          import flash.events.IEventDispatcher;
          public interface IModuleInterface extends IEventDispatcher
          {
              function modInit():void;
          }
      }

       

      Here's the module that works:

       

      <?xml version="1.0" encoding="utf-8"?>
      <mx:Module xmlns:fx="http://ns.adobe.com/mxml/2009"
                 xmlns:s="library://ns.adobe.com/flex/spark"
                 xmlns:mx="library://ns.adobe.com/flex/mx"
                 implements="TxCIT.IModuleInterface">
          <fx:Declarations>
              <mx:HTTPService id="httpService"
                              resultFormat="e4x"
                              fault="httpService_fault(event);"
                              result="httpService_result(event)" />   
          </fx:Declarations>
          <fx:Script>
              <![CDATA[
                  import TxCIT.*;
                  import mx.controls.Alert;
                  import mx.events.CloseEvent;
                  import mx.rpc.events.FaultEvent;
                  import mx.rpc.events.ResultEvent;
                 
                  public function modInit():void {
                      trace("modAbout init ...");
                      loadConfig("xml/modAbout.xml");
                  }

       

                  private function loadConfig(src:String):void {
                      httpService.url = src;
                      httpService.send();
                  }           
                 
                  private function httpService_fault(evt:FaultEvent):void {
                      Alert.show(evt.fault.faultString, evt.type + " (" + evt.fault.faultCode + ")");
                  }
                 
                  private function httpService_result(evt:ResultEvent):void {
                      var config:XML = evt.result as XML;
                      ShowAbout(config);
                  }
                 
                  private function ShowAbout(config:XML):void {
                      var msg:String = "TxDOT Cartographic Information System (TxCIT)";
                      msg+="\nVersion: "+config..version;
                      msg+="\nAuthor: "+config..who;
                      msg+="\nCompany: "+config..where;
                      msg+="\nContact: "+config..how;
                      msg+="\nDate: "+config..when;
                      Alert.show(msg,"About",Alert.OK,null,
                          function(e:CloseEvent):void {
                              if (e.detail==Alert.OK) {
                                  modExit();
                              }
                          }
                      );
                  }
                 
                  private function modExit():void {
                      var params:Object;
                      var evt:txEvent=new txEvent(txEvent.UNLOADMOD,params,true);
                      trace("modAbout ...exit.");
                      dispatchEvent(evt);
                  }
                 
              ]]>
          </fx:Script>
      </mx:Module>

        • 1. Re: READY event not firing in module (FB4)
          Flex harUI Adobe Employee

          Generate a link-report for the main app and make sure ModuleTitleWindow is

          not in the main app.

          • 2. Re: READY event not firing in module (FB4)
            freevryheid Level 1

            Here's the link report. ModuleTitleWindow is not featured - but neither is modCoord (the TitleWindow module). Weird.

             

            <report>
              <scripts>
                <script name="C:\Program Files\Adobe\Adobe Flash Builder 4\sdks\4.0.0\frameworks\libs\framework.swc(mx.core:IRepeaterClient)" mod="1262975720635" size="1213" optimizedsize="321">
                  <def id="mx.core:IRepeaterClient" />
                  <pre id="Object" />
                  <dep id="AS3" />
                </script>
                <script name="_modAbout_Styles.as" mod="1274444452095" size="12174" optimizedsize="11325">
                  <def id="_modAbout_Styles" />
                  <pre id="Object" />
                  <dep id="mx.core:UIComponent" />
                  <dep id="spark.skins.spark:FocusSkin" />
                  <dep id="mx.skins.spark:ScrollBarTrackSkin" />
                  <dep id="mx.skins.spark:BorderSkin" />
                  <dep id="mx.skins.spark:PanelBorderSkin" />
                  <dep id="mx.core:mx_internal" />
                  <dep id="mx.styles:CSSCondition" />
                  <dep id="mx.utils:ObjectUtil" />
                  <dep id="mx.skins.spark:ScrollBarDownButtonSkin" />
                  <dep id="AS3" />
                  <dep id="mx.skins.halo:HaloFocusRect" />
                  <dep id="mx.styles:CSSSelector" />
                  <dep id="mx.skins.spark:DefaultButtonSkin" />
                  <dep id="mx.styles:CSSStyleDeclaration" />
                  <dep id="mx.skins.spark:ContainerBorderSkin" />
                  <dep id="spark.skins.spark:ErrorSkin" />
                  <dep id="mx.skins.halo:BusyCursor" />
                  <dep id="mx.core:UITextField" />
                  <dep id="mx.skins.spark:ButtonSkin" />
                  <dep id="mx.core:IFlexModuleFactory" />
                  <dep id="mx.skins.spark:ScrollBarUpButtonSkin" />
                  <dep id="_modAbout_Styles__embed_css_Assets_swf_mx_skins_cursor_BusyCursor_43142970" />
                  <dep id="mx.skins.halo:ToolTipBorder" />
                  <dep id="mx.skins.spark:ScrollBarThumbSkin" />
                  <dep id="mx.styles:IStyleManager2" />
                </script>
                <script name="_modAbout_FlexInit-generated.as" mod="1274444452110" size="4963" optimizedsize="4344">
                  <def id="_modAbout_FlexInit" />
                  <pre id="Object" />
                  <dep id="mx.collections:ArrayList" />
                  <dep id="mx.messaging.messages:MessagePerformanceInfo" />
                  <dep id="mx.managers.systemClasses:ChildManager" />
                  <dep id="mx.messaging.messages:CommandMessage" />
                  <dep id="en_US$containers_properties" />
                  <dep id="mx.core:TextFieldFactory" />
                  <dep id="mx.core:mx_internal" />
                  <dep id="en_US$components_properties" />
                  <dep id="en_US$logging_properties" />
                  <dep id="mx.accessibility:UIComponentAccProps" />
                  <dep id="mx.messaging.messages:AsyncMessageExt" />
                  <dep id="mx.utils:ObjectProxy" />
                  <dep id="en_US$layout_properties" />
                  <dep id="mx.messaging.messages:AcknowledgeMessageExt" />
                  <dep id="AS3" />
                  <dep id="mx.accessibility:AlertAccImpl" />
                  <dep id="en_US$messaging_properties" />
                  <dep id="en_US$collections_properties" />
                  <dep id="mx.styles:StyleManagerImpl" />
                  <dep id="mx.messaging.messages:HTTPRequestMessage" />
                  <dep id="mx.messaging.messages:AcknowledgeMessage" />
                  <dep id="en_US$skins_properties" />
                  <dep id="en_US$core_properties" />
                  <dep id="Error" />
                  <dep id="en_US$styles_properties" />
                  <dep id="mx.core:IFlexModuleFactory" />
                  <dep id="mx.collections:ArrayCollection" />
                  <dep id="flash.net:registerClassAlias" />
                  <dep id="mx.effects:EffectManager" />
                  <dep id="flash.net:getClassByAlias" />
                  <dep id="en_US$controls_properties" />
                  <dep id="en_US$effects_properties" />
                  <dep id="flash.system:Capabilities" />
                  <dep id="mx.messaging.config:ConfigMap" />
                  <dep id="mx.styles:IStyleManager2" />
                  <dep id="mx.messaging.messages:ErrorMessage" />
                  <dep id="mx.accessibility:ButtonAccImpl" />
                  <dep id="en_US$rpc_properties" />
                  <dep id="mx.messaging.messages:AsyncMessage" />
                  <dep id="mx.accessibility:PanelAccImpl" />
                  <dep id="mx.messaging.messages:CommandMessageExt" />
                </script>
                <script name="C:\Program Files\Adobe\Adobe Flash Builder 4\sdks\4.0.0\frameworks\locale\en_US\automation_agent_rb.swc$locale/en_US/skins.propertie s" mod="1264592004000" size="286" optimizedsize="260">
                  <def id="en_US$skins_properties" />
                  <pre id="mx.resources:ResourceBundle" />
                  <dep id="AS3" />
                </script>
                <script name="C:\Program Files\Adobe\Adobe Flash Builder 4\sdks\4.0.0\frameworks\libs\flash-integration.swc(mx.resources:IResourceModule)" mod="1262975759135" size="539" optimizedsize="178">
                  <def id="mx.resources:IResourceModule" />
                  <pre id="Object" />
                  <dep id="AS3" />
                </script>
                <script name="C:\Program Files\Adobe\Adobe Flash Builder 4\sdks\4.0.0\frameworks\libs\flash-integration.swc(mx.core:IFlexModuleFactory)" mod="1262975720869" size="1415" optimizedsize="437">
                  <def id="mx.core:IFlexModuleFactory" />
                  <pre id="Object" />
                  <dep id="AS3" />
                  <dep id="flash.utils:Dictionary" />
                </script>
                <script name="C:\Program Files\Adobe\Adobe Flash Builder 4\sdks\4.0.0\frameworks\locale\en_US\rpc_rb.swc$locale/en_US/messaging.properties" mod="1262975649588" size="5888" optimizedsize="5789">
                  <def id="en_US$messaging_properties" />
                  <pre id="mx.resources:ResourceBundle" />
                  <dep id="AS3" />
                </script>
                <script name="C:\Program Files\Adobe\Adobe Flash Builder 4\sdks\4.0.0\frameworks\locale\en_US\airframework_rb.swc$locale/en_US/collections.propert ies" mod="1262975823447" size="1321" optimizedsize="1278">
                  <def id="en_US$collections_properties" />
                  <pre id="mx.resources:ResourceBundle" />
                  <dep id="AS3" />
                </script>
                <script name="C:\Program Files\Adobe\Adobe Flash Builder 4\sdks\4.0.0\frameworks\libs\flash-integration.swc(mx.resources:IResourceManager)" mod="1262975759150" size="3588" optimizedsize="1031">
                  <def id="mx.resources:IResourceManager" />
                  <pre id="flash.events:IEventDispatcher" />
                  <pre id="Object" />
                  <dep id="flash.system:SecurityDomain" />
                  <dep id="AS3" />
                  <dep id="mx.resources:IResourceBundle" />
                  <dep id="flash.system:ApplicationDomain" />
                </script>
                <script name="C:\Program Files\Adobe\Adobe Flash Builder 4\sdks\4.0.0\frameworks\libs\flash-integration.swc(mx.core:IFlexModule)" mod="1262975722213" size="560" optimizedsize="188">
                  <def id="mx.core:IFlexModule" />
                  <pre id="Object" />
                  <dep id="mx.core:IFlexModuleFactory" />
                  <dep id="AS3" />
                </script>
                <script name="C:\Program Files\Adobe\Adobe Flash Builder 4\sdks\4.0.0\frameworks\locale\en_US\automation_agent_rb.swc(mx.resources:ResourceBundle) " mod="1264592068000" size="1846" optimizedsize="855">
                  <def id="mx.resources:ResourceBundle" />
                  <pre id="mx.resources:IResourceBundle" />
                  <pre id="Object" />
                  <dep id="AS3" />
                  <dep id="mx.core:mx_internal" />
                  <dep id="flash.system:ApplicationDomain" />
                  <dep id="Error" />
                </script>
                <script name="C:\Program Files\Adobe\Adobe Flash Builder 4\sdks\4.0.0\frameworks\libs\framework.swc(mx.events:RSLEvent)" mod="1262975748463" size="1365" optimizedsize="775">
                  <def id="mx.events:RSLEvent" />
                  <pre id="flash.events:ProgressEvent" />
                  <dep id="flash.events:Event" />
                  <dep id="flash.net:URLRequest" />
                  <dep id="AS3" />
                  <dep id="flash.display:LoaderInfo" />
                  <dep id="mx.core:mx_internal" />
                </script>
                <script name="C:\Program Files\Adobe\Adobe Flash Builder 4\sdks\4.0.0\frameworks\libs\framework.swc(mx.core:FlexModuleFactory)" mod="1262975721682" size="9960" optimizedsize="5887">
                  <def id="mx.core:FlexModuleFactory" />
                  <pre id="mx.core:IFlexModuleFactory" />
                  <pre id="flash.display:MovieClip" />
                  <dep id="mx.utils:LoaderUtil" />
                  <dep id="flash.text:TextFieldAutoSize" />
                  <dep id="flash.events:Event" />
                  <dep id="mx.core:mx_internal" />
                  <dep id="flash.display:LoaderInfo" />
                  <dep id="flash.system:ApplicationDomain" />
                  <dep id="mx.resources:ResourceManager" />
                  <dep id="Error" />
                  <dep id="mx.resources:IResourceManager" />
                  <dep id="mx.core:RSLItem" />
                  <dep id="AS3" />
                  <dep id="mx.core:RSLListLoader" />
                  <dep id="flash.text:TextField" />
                  <dep id="mx.events:ModuleEvent" />
                  <dep id="mx.core:Singleton" />
                  <dep id="flash.utils:Timer" />
                  <dep id="flash.events:TimerEvent" />
                  <dep id="flash.utils:Dictionary" />
                  <dep id="flash.events:ErrorEvent" />
                </script>
                <script name="C:\Program Files\Adobe\Adobe Flash Builder 4\sdks\4.0.0\frameworks\libs\framework.swc(mx.utils:LoaderUtil)" mod="1262975731416" size="2104" optimizedsize="1241">
                  <def id="mx.utils:LoaderUtil" />
                  <pre id="Object" />
                  <dep id="AS3" />
                  <dep id="flash.system:Capabilities" />
                  <dep id="Math" />
                  <dep id="flash.display:LoaderInfo" />
                  <dep id="mx.core:mx_internal" />
                </script>
                <script name="C:\Program Files\Adobe\Adobe Flash Builder 4\sdks\4.0.0\frameworks\locale\en_US\rpc_rb.swc$locale/en_US/rpc.properties" mod="1262975649573" size="4200" optimizedsize="4124">
                  <def id="en_US$rpc_properties" />
                  <pre id="mx.resources:ResourceBundle" />
                  <dep id="AS3" />
                </script>
                <script name="C:\Program Files\Adobe\Adobe Flash Builder 4\sdks\4.0.0\frameworks\libs\flash-integration.swc(mx.core:IChildList)" mod="1262975721604" size="1469" optimizedsize="497">
                  <def id="mx.core:IChildList" />
                  <pre id="Object" />
                  <dep id="AS3" />
                  <dep id="flash.display:DisplayObject" />
                  <dep id="flash.geom:Point" />
                </script>
                <script name="C:\Program Files\Adobe\Adobe Flash Builder 4\sdks\4.0.0\frameworks\libs\framework.swc(mx.utils:NameUtil)" mod="1262975731275" size="1899" optimizedsize="1264">
                  <def id="mx.utils:NameUtil" />
                  <pre id="Object" />
                  <dep id="mx.core:IRepeaterClient" />
                  <dep id="SecurityError" />
                  <dep id="flash.utils:getQualifiedClassName" />
                  <dep id="AS3" />
                  <dep id="flash.display:DisplayObject" />
                  <dep id="mx.core:mx_internal" />
                </script>
                <script name="C:\Program Files\Adobe\Adobe Flash Builder 4\sdks\4.0.0\frameworks\libs\framework.swc(mx.graphics:RectangularDropShadow)" mod="1262975734041" size="7005" optimizedsize="3389">
                  <def id="mx.graphics:RectangularDropShadow" />
                  <pre id="Object" />
                  <dep id="mx.core:FlexShape" />
                  <dep id="flash.display:Graphics" />
                  <dep id="flash.display:BitmapData" />
                  <dep id="AS3" />
                  <dep id="flash.geom:Rectangle" />
                  <dep id="flash.geom:Matrix" />
                  <dep id="Math" />
                  <dep id="mx.core:mx_internal" />
                  <dep id="flash.geom:Point" />
                  <dep id="flash.filters:DropShadowFilter" />
                  <dep id="mx.utils:GraphicsUtil" />
                  <dep id="flash.display:Shape" />
                </script>
                <script name="C:\Program Files\Adobe\Adobe Flash Builder 4\sdks\4.0.0\frameworks\libs\framework.swc(mx.core:RSLItem)" mod="1262975720619" size="2751" optimizedsize="1686">
                  <def id="mx.core:RSLItem" />
                  <pre id="Object" />
                  <dep id="mx.utils:LoaderUtil" />
                  <dep id="flash.events:Event" />
                  <dep id="flash.net:URLRequest" />
                  <dep id="trace" />
                  <dep id="mx.events:RSLEvent" />
                  <dep id="flash.events:IOErrorEvent" />
                  <dep id="flash.display:Loader" />
                  <dep id="mx.core:mx_internal" />
                  <dep id="flash.events:SecurityErrorEvent" />
                  <dep id="flash.system:ApplicationDomain" />
                  <dep id="mx.core:IFlexModuleFactory" />
                  <dep id="flash.events:ProgressEvent" />
                  <dep id="AS3" />
                  <dep id="flash.system:LoaderContext" />
                  <dep id="flash.events:ErrorEvent" />
                </script>
                <script name="C:\Program Files\Adobe\Adobe Flash Builder 4\sdks\4.0.0\frameworks\locale\en_US\framework_rb.swc$locale/en_US/logging.properties" mod="1262975823369" size="735" optimizedsize="704">
                  <def id="en_US$logging_properties" />
                  <pre id="mx.resources:ResourceBundle" />
                  <dep id="AS3" />
                </script>
                <script name="C:\Program Files\Adobe\Adobe Flash Builder 4\sdks\4.0.0\frameworks\libs\framework.swc(mx.preloaders:SparkDownloadProgressBar)" mod="1263586859699" size="13103" optimizedsize="6977">
                  <def id="mx.preloaders:SparkDownloadProgressBar" />
                  <pre id="mx.preloaders:IPreloaderDisplay" />
                  <pre id="flash.display:Sprite" />
                  <dep id="flash.events:Event" />
                  <dep id="mx.graphics:RectangularDropShadow" />
                  <dep id="Math" />
                  <dep id="flash.display:LoaderInfo" />
                  <dep id="mx.core:mx_internal" />
                  <dep id="flash.system:ApplicationDomain" />
                  <dep id="flash.display:Graphics" />
                  <dep id="flash.text:TextFormat" />
                  <dep id="AS3" />
                  <dep id="flash.geom:Matrix" />
                  <dep id="flash.utils:getDefinitionByName" />
                  <dep id="mx.events:FlexEvent" />
                  <dep id="flash.geom:ColorTransform" />
                  <dep id="flash.text:TextFieldAutoSize" />
                  <dep id="flash.net:URLRequest" />
                  <dep id="flash.events:IOErrorEvent" />
                  <dep id="mx.events:RSLEvent" />
                  <dep id="flash.utils:getTimer" />
                  <dep id="flash.display:Loader" />
                  <dep id="Error" />
                  <dep id="mx.managers:ISystemManager" />
                  <dep id="flash.events:ProgressEvent" />
                  <dep id="flash.text:TextField" />
                  <dep id="flash.system:Capabilities" />
                  <dep id="flash.display:DisplayObject" />
                  <dep id="flash.system:LoaderContext" />
                </script>
                <script name="C:\Program Files\Adobe\Adobe Flash Builder 4\sdks\4.0.0\frameworks\libs\flash-integration.swc(mx.utils:StringUtil)" mod="1262975731385" size="2760" optimizedsize="1459">
                  <def id="mx.utils:StringUtil" />
                  <pre id="Object" />
                  <dep id="AS3" />
                  <dep id="mx.core:mx_internal" />
                  <dep id="RegExp" />
                </script>
                <script name="C:\Program Files\Adobe\Adobe Flash Builder 4\sdks\4.0.0\frameworks\libs\flash-integration.swc(mx.resources:LocaleSorter)" mod="1262975759056" size="10087" optimizedsize="6859">
                  <def id="mx.resources:LocaleSorter" />
                  <pre id="Object" />
                  <dep id="AS3" />
                  <dep id="mx.core:mx_internal" />
                </script>
                <script name="C:\Program Files\Adobe\Adobe Flash Builder 4\sdks\4.0.0\frameworks\libs\flash-integration.swc(mx.managers:ISystemManager)" mod="1262975729447" size="3416" optimizedsize="1009">
                  <def id="mx.managers:ISystemManager" />
                  <pre id="mx.core:IFlexModuleFactory" />
                  <pre id="flash.events:IEventDispatcher" />
                  <pre id="mx.core:IChildList" />
                  <pre id="Object" />
                  <dep id="flash.text:TextFormat" />
                  <dep id="AS3" />
                  <dep id="flash.geom:Rectangle" />
                  <dep id="flash.display:DisplayObject" />
                  <dep id="flash.display:LoaderInfo" />
                  <dep id="flash.display:Stage" />
                  <dep id="flash.display:Sprite" />
                </script>
                <script name="C:\Program Files\Adobe\Adobe Flash Builder 4\sdks\4.0.0\frameworks\locale\en_US\automation_agent_rb.swc$locale/en_US/effects.propert ies" mod="1264592004000" size="401" optimizedsize="374">
                  <def id="en_US$effects_properties" />
                  <pre id="mx.resources:ResourceBundle" />
                  <dep id="AS3" />
                </script>
                <script name="C:\Program Files\Adobe\Adobe Flash Builder 4\sdks\4.0.0\frameworks\locale\en_US\automation_agent_rb.swc(mx.resources:IResourceBundle )" mod="1264592024000" size="807" optimizedsize="216">
                  <def id="mx.resources:IResourceBundle" />
                  <pre id="Object" />
                  <dep id="AS3" />
                </script>
                <script name="C:\Program Files\Adobe\Adobe Flash Builder 4\sdks\4.0.0\frameworks\libs\framework.swc(mx.core:RSLListLoader)" mod="1262975721525" size="2335" optimizedsize="1114">
                  <def id="mx.core:RSLListLoader" />
                  <pre id="Object" />
                  <dep id="flash.events:Event" />
                  <dep id="mx.core:RSLItem" />
                  <dep id="AS3" />
                  <dep id="mx.core:mx_internal" />
                </script>
                <script name="C:\Documents and Settings\smitad-la\Adobe Flash Builder 4\TxCIT\src\mod\modAbout.mxml" mod="1274358268700" size="4525" optimizedsize="3188">
                  <def id="mod:modAbout" />
                  <pre id="flash.events:IEventDispatcher" />
                  <pre id="TxCIT:IModuleInterface" />
                  <pre id="mx.modules:Module" />
                  <dep id="mx.styles:CSSSelector" />
                  <dep id="mx.styles:CSSStyleDeclaration" />
                  <dep id="TxCIT:txEvent" />
                  <dep id="_modAbout_FlexInit" />
                  <dep id="mx.controls:Alert" />
                  <dep id="trace" />
                  <dep id="mx.core:UIComponentDescriptor" />
                  <dep id="mx.core:mx_internal" />
                  <dep id="_modAbout_Styles" />
                  <dep id="mx.binding:BindingManager" />
                  <dep id="mx.styles:CSSCondition" />
                  <dep id="mx.core:IFlexModuleFactory" />
                  <dep id="mx.rpc.events:FaultEvent" />
                  <dep id="mx.rpc.http.mxml:HTTPService" />
                  <dep id="mx.rpc.events:ResultEvent" />
                  <dep id="AS3" />
                  <dep id="mx.events:CloseEvent" />
                  <dep id="XML" />
                  <dep id="mx.events:PropertyChangeEvent" />
                </script>
                <script name="C:\Program Files\Adobe\Adobe Flash Builder 4\sdks\4.0.0\frameworks\locale\en_US\automation_agent_rb.swc$locale/en_US/controls.proper ties" mod="1264592004000" size="2621" optimizedsize="2556">
                  <def id="en_US$controls_properties" />
                  <pre id="mx.resources:ResourceBundle" />
                  <dep id="AS3" />
                </script>
                <script name="C:\Program Files\Adobe\Adobe Flash Builder 4\sdks\4.0.0\frameworks\libs\textLayout.swc(flashx.textLayout.compose:ISWFContext)" mod="1264794041603" size="679" optimizedsize="234">
                  <def id="flashx.textLayout.compose:ISWFContext" />
                  <pre id="Object" />
                  <dep id="AS3" />
                </script>
                <script name="C:\Program Files\Adobe\Adobe Flash Builder 4\sdks\4.0.0\frameworks\locale\en_US\spark_rb.swc$locale/en_US/layout.properties" mod="1262975590714" size="344" optimizedsize="317">
                  <def id="en_US$layout_properties" />
                  <pre id="mx.resources:ResourceBundle" />
                  <dep id="AS3" />
                </script>
                <script name="C:\Program Files\Adobe\Adobe Flash Builder 4\sdks\4.0.0\frameworks\locale\en_US\automation_agent_rb.swc$locale/en_US/styles.properti es" mod="1264592004000" size="301" optimizedsize="275">
                  <def id="en_US$styles_properties" />
                  <pre id="mx.resources:ResourceBundle" />
                  <dep id="AS3" />
                </script>
                <script name="_modAbout_Styles__embed_css_Assets_swf_mx_skins_cursor_BusyCursor_43142970.as" mod="1262975698000" size="1051" optimizedsize="375">
                  <def id="_modAbout_Styles__embed_css_Assets_swf_mx_skins_cursor_BusyCursor_43142970" />
                  <pre id="mx.core:SpriteAsset" />
                  <dep id="AS3" />
                </script>
                <script name="C:\Program Files\Adobe\Adobe Flash Builder 4\sdks\4.0.0\frameworks\locale\en_US\automation_agent_rb.swc(mx.core:mx_internal)" mod="1264592040000" size="226" optimizedsize="109">
                  <def id="mx.core:mx_internal" />
                  <dep id="AS3" />
                </script>
                <script name="C:\Program Files\Adobe\Adobe Flash Builder 4\sdks\4.0.0\frameworks\libs\flash-integration.swc(mx.resources:ResourceManager)" mod="1262975759119" size="1134" optimizedsize="657">
                  <def id="mx.resources:ResourceManager" />
                  <pre id="Object" />
                  <dep id="mx.resources:IResourceManager" />
                  <dep id="AS3" />
                  <dep id="mx.resources:ResourceManagerImpl" />
                  <dep id="mx.core:Singleton" />
                  <dep id="flash.utils:getDefinitionByName" />
                  <dep id="mx.core:mx_internal" />
                  <dep id="Error" />
                </script>
                <script name="C:\Program Files\Adobe\Adobe Flash Builder 4\sdks\4.0.0\frameworks\libs\flash-integration.swc(mx.modules:ModuleManagerGlobals)" mod="1262975753306" size="508" optimizedsize="211">
                  <def id="mx.modules:ModuleManagerGlobals" />
                  <pre id="Object" />
                  <dep id="AS3" />
                </script>
                <script name="C:\Program Files\Adobe\Adobe Flash Builder 4\sdks\4.0.0\frameworks\libs\flash-integration.swc(mx.core:Singleton)" mod="1262975722604" size="1075" optimizedsize="555">
                  <def id="mx.core:Singleton" />
                  <pre id="Object" />
                  <dep id="AS3" />
                  <dep id="mx.core:mx_internal" />
                  <dep id="Error" />
                </script>
                <script name="C:\Program Files\Adobe\Adobe Flash Builder 4\sdks\4.0.0\frameworks\libs\flash-integration.swc(mx.events:ResourceEvent)" mod="1262975747650" size="1071" optimizedsize="571">
                  <def id="mx.events:ResourceEvent" />
                  <pre id="flash.events:ProgressEvent" />
                  <dep id="flash.events:Event" />
                  <dep id="AS3" />
                  <dep id="mx.core:mx_internal" />
                </script>
                <script name="_modAbout_mx_core_FlexModuleFactory.as" mod="1274444452110" size="2654" optimizedsize="1945">
                  <def id="_modAbout_mx_core_FlexModuleFactory" />
                  <pre id="mx.core:FlexModuleFactory" />
                  <pre id="mx.core:IFlexModuleFactory" />
                  <pre id="flashx.textLayout.compose:ISWFContext" />
                  <dep id="flash.system:Security" />
                  <dep id="AS3" />
                  <dep id="mx.core:IFlexModule" />
                  <dep id="flash.system:ApplicationDomain" />
                  <dep id="flash.utils:Dictionary" />
                  <dep id="mx.preloaders:SparkDownloadProgressBar" />
                </script>
                <script name="C:\Program Files\Adobe\Adobe Flash Builder 4\sdks\4.0.0\frameworks\libs\framework.swc(mx.utils:GraphicsUtil)" mod="1262975731354" size="2641" optimizedsize="1443">
                  <def id="mx.utils:GraphicsUtil" />
                  <pre id="Object" />
                  <dep id="flash.display:Graphics" />
                  <dep id="AS3" />
                  <dep id="mx.core:mx_internal" />
                </script>
                <script name="C:\Program Files\Adobe\Adobe Flash Builder 4\sdks\4.0.0\frameworks\libs\flash-integration.swc(mx.events:Request)" mod="1263605502111" size="900" optimizedsize="481">
                  <def id="mx.events:Request" />
                  <pre id="flash.events:Event" />
                  <dep id="AS3" />
                  <dep id="mx.core:mx_internal" />
                </script>
                <script name="C:\Program Files\Adobe\Adobe Flash Builder 4\sdks\4.0.0\frameworks\libs\flash-integration.swc(mx.resources:ResourceManagerImpl)" mod="1262975759135" size="12015" optimizedsize="6341">
                  <def id="mx.resources:ResourceManagerImpl" />
                  <pre id="mx.resources:IResourceManager" />
                  <pre id="flash.events:EventDispatcher" />
                  <pre id="Object" />
                  <dep id="flash.events:Event" />
                  <dep id="mx.resources:LocaleSorter" />
                  <dep id="flash.events:IEventDispatcher" />
                  <dep id="mx.resources:IResourceModule" />
                  <dep id="trace" />
                  <dep id="mx.utils:StringUtil" />
                  <dep id="mx.resources:ResourceBundle" />
                  <dep id="mx.core:mx_internal" />
                  <dep id="flash.system:ApplicationDomain" />
                  <dep id="Error" />
                  <dep id="mx.modules:ModuleManager" />
                  <dep id="mx.modules:IModuleInfo" />
                  <dep id="flash.system:SecurityDomain" />
                  <dep id="AS3" />
                  <dep id="mx.resources:IResourceBundle" />
                  <dep id="mx.events:ModuleEvent" />
                  <dep id="flash.system:Capabilities" />
                  <dep id="mx.events:ResourceEvent" />
                  <dep id="flash.utils:Timer" />
                  <dep id="flash.events:FocusEvent" />
                  <dep id="flash.events:TimerEvent" />
                  <dep id="mx.events:FlexEvent" />
                  <dep id="mx.managers:SystemManagerGlobals" />
                </script>
                <script name="C:\Program Files\Adobe\Adobe Flash Builder 4\sdks\4.0.0\frameworks\libs\flash-integration.swc(mx.managers:SystemManagerGlobals)" mod="1262975729432" size="849" optimizedsize="429">
                  <def id="mx.managers:SystemManagerGlobals" />
                  <pre id="Object" />
                  <dep id="AS3" />
                </script>
                <script name="C:\Program Files\Adobe\Adobe Flash Builder 4\sdks\4.0.0\frameworks\libs\flash-integration.swc(mx.events:ModuleEvent)" mod="1262975748135" size="1345" optimizedsize="729">
                  <def id="mx.events:ModuleEvent" />
                  <pre id="flash.events:ProgressEvent" />
                  <dep id="flash.events:Event" />
                  <dep id="mx.modules:IModuleInfo" />
                  <dep id="AS3" />
                  <dep id="mx.core:mx_internal" />
                </script>
                <script name="C:\Program Files\Adobe\Adobe Flash Builder 4\sdks\4.0.0\frameworks\locale\en_US\automation_agent_rb.swc$locale/en_US/core.properties " mod="1264592004000" size="1396" optimizedsize="1356">
                  <def id="en_US$core_properties" />
                  <pre id="mx.resources:ResourceBundle" />
                  <dep id="AS3" />
                </script>
                <script name="C:\Program Files\Adobe\Adobe Flash Builder 4\sdks\4.0.0\frameworks\locale\en_US\spark_rb.swc$locale/en_US/components.properties" mod="1262975590667" size="4035" optimizedsize="3969">
                  <def id="en_US$components_properties" />
                  <pre id="mx.resources:ResourceBundle" />
                  <dep id="AS3" />
                </script>
                <script name="C:\Program Files\Adobe\Adobe Flash Builder 4\sdks\4.0.0\frameworks\locale\en_US\automation_agent_rb.swc$locale/en_US/containers.prop erties" mod="1264592004000" size="451" optimizedsize="422">
                  <def id="en_US$containers_properties" />
                  <pre id="mx.resources:ResourceBundle" />
                  <dep id="AS3" />
                </script>
                <script name="C:\Program Files\Adobe\Adobe Flash Builder 4\sdks\4.0.0\frameworks\libs\flash-integration.swc(mx.modules:ModuleManager)" mod="1262975753306" size="10968" optimizedsize="5757">
                  <def id="mx.modules:ModuleManager" />
                  <pre id="mx.modules:IModuleInfo" />
                  <pre id="flash.events:EventDispatcher" />
                  <pre id="Object" />
                  <dep id="flash.events:Event" />
                  <dep id="flash.utils:ByteArray" />
                  <dep id="flash.net:URLRequest" />
                  <dep id="flash.system:Security" />
                  <dep id="flash.events:IOErrorEvent" />
                  <dep id="mx.core:mx_internal" />
                  <dep id="flash.display:Loader" />
                  <dep id="flash.system:ApplicationDomain" />
                  <dep id="flash.events:SecurityErrorEvent" />
                  <dep id="Error" />
                  <dep id="mx.core:IFlexModuleFactory" />
                  <dep id="flash.utils:getQualifiedClassName" />
                  <dep id="mx.modules:ModuleManagerGlobals" />
                  <dep id="flash.system:SecurityDomain" />
                  <dep id="flash.events:ProgressEvent" />
                  <dep id="mx.events:Request" />
                  <dep id="AS3" />
                  <dep id="mx.events:ModuleEvent" />
                  <dep id="flash.system:LoaderContext" />
                  <dep id="flash.utils:Dictionary" />
                  <dep id="flash.events:ErrorEvent" />
                </script>
                <script name="C:\Program Files\Adobe\Adobe Flash Builder 4\sdks\4.0.0\frameworks\libs\flash-integration.swc(mx.modules:IModuleInfo)" mod="1262975753322" size="1730" optimizedsize="534">
                  <def id="mx.modules:IModuleInfo" />
                  <pre id="flash.events:IEventDispatcher" />
                  <pre id="Object" />
                  <dep id="mx.core:IFlexModuleFactory" />
                  <dep id="flash.system:SecurityDomain" />
                  <dep id="flash.utils:ByteArray" />
                  <dep id="AS3" />
                  <dep id="mx.events:ModuleEvent" />
                  <dep id="flash.system:ApplicationDomain" />
                </script>
                <script name="C:\Program Files\Adobe\Adobe Flash Builder 4\sdks\4.0.0\frameworks\libs\framework.swc(mx.core:FlexShape)" mod="1262975720916" size="864" optimizedsize="496">
                  <def id="mx.core:FlexShape" />
                  <pre id="flash.display:Shape" />
                  <dep id="AS3" />
                  <dep id="mx.core:mx_internal" />
                  <dep id="Error" />
                  <dep id="mx.utils:NameUtil" />
                </script>
                <script name="C:\Program Files\Adobe\Adobe Flash Builder 4\sdks\4.0.0\frameworks\libs\framework.swc(mx.preloaders:IPreloaderDisplay)" mod="1262975731869" size="2113" optimizedsize="508">
                  <def id="mx.preloaders:IPreloaderDisplay" />
                  <pre id="flash.events:IEventDispatcher" />
                  <pre id="Object" />
                  <dep id="AS3" />
                  <dep id="flash.display:Sprite" />
                </script>
                <script name="C:\Program Files\Adobe\Adobe Flash Builder 4\sdks\4.0.0\frameworks\libs\flash-integration.swc(mx.events:FlexEvent)" mod="1262975747760" size="3240" optimizedsize="2026">
                  <def id="mx.events:FlexEvent" />
                  <pre id="flash.events:Event" />
                  <dep id="AS3" />
                  <dep id="mx.core:mx_internal" />
                </script>
              </scripts>
              <external-defs>
                <ext id="mx.core:UIComponent" />
                <ext id="mx.accessibility:AlertAccImpl" />
                <ext id="mx.styles:CSSStyleDeclaration" />
                <ext id="TxCIT:txEvent" />
                <ext id="AS3" />
                <ext id="flash.events:IOErrorEvent" />
                <ext id="mx.styles:IStyleManager2" />
                <ext id="flash.geom:ColorTransform" />
                <ext id="flash.display:DisplayObject" />
                <ext id="mx.messaging.messages:AcknowledgeMessageExt" />
                <ext id="mx.accessibility:UIComponentAccProps" />
                <ext id="TxCIT:IModuleInterface" />
                <ext id="mx.styles:CSSSelector" />
                <ext id="mx.skins.halo:BusyCursor" />
                <ext id="mx.skins.spark:ScrollBarTrackSkin" />
                <ext id="mx.core:UIComponentDescriptor" />
                <ext id="flash.filters:DropShadowFilter" />
                <ext id="flash.events:IEventDispatcher" />
                <ext id="flash.utils:Dictionary" />
                <ext id="mx.utils:ObjectProxy" />
                <ext id="flash.events:SecurityErrorEvent" />
                <ext id="flash.display:MovieClip" />
                <ext id="mx.accessibility:PanelAccImpl" />
                <ext id="flash.events:TimerEvent" />
                <ext id="flash.display:Stage" />
                <ext id="mx.core:TextFieldFactory" />
                <ext id="mx.collections:ArrayCollection" />
                <ext id="XML" />
                <ext id="flash.events:ProgressEvent" />
                <ext id="mx.styles:CSSCondition" />
                <ext id="flash.utils:Timer" />
                <ext id="Math" />
                <ext id="mx.events:CloseEvent" />
                <ext id="flash.events:Event" />
                <ext id="mx.skins.spark:BorderSkin" />
                <ext id="flash.display:LoaderInfo" />
                <ext id="mx.messaging.messages:HTTPRequestMessage" />
                <ext id="mx.effects:EffectManager" />
                <ext id="mx.messaging.messages:AsyncMessageExt" />
                <ext id="flash.display:Loader" />
                <ext id="flash.system:LoaderContext" />
                <ext id="mx.accessibility:ButtonAccImpl" />
                <ext id="flash.geom:Matrix" />
                <ext id="mx.binding:BindingManager" />
                <ext id="mx.messaging.messages:CommandMessageExt" />
                <ext id="mx.controls:Alert" />
                <ext id="mx.messaging.messages:CommandMessage" />
                <ext id="mx.skins.spark:DefaultButtonSkin" />
                <ext id="Error" />
                <ext id="mx.skins.spark:ContainerBorderSkin" />
                <ext id="spark.skins.spark:ErrorSkin" />
                <ext id="spark.skins.spark:FocusSkin" />
                <ext id="mx.skins.spark:PanelBorderSkin" />
                <ext id="SecurityError" />
                <ext id="mx.styles:StyleManagerImpl" />
                <ext id="flash.display:Graphics" />
                <ext id="flash.geom:Point" />
                <ext id="flash.utils:getQualifiedClassName" />
                <ext id="flash.utils:getDefinitionByName" />
                <ext id="flash.text:TextFieldAutoSize" />
                <ext id="flash.utils:getTimer" />
                <ext id="flash.utils:ByteArray" />
                <ext id="flash.net:URLRequest" />
                <ext id="flash.display:Shape" />
                <ext id="mx.skins.spark:ScrollBarDownButtonSkin" />
                <ext id="mx.rpc.http.mxml:HTTPService" />
                <ext id="flash.system:Capabilities" />
                <ext id="mx.modules:Module" />
                <ext id="flash.events:EventDispatcher" />
                <ext id="flash.system:SecurityDomain" />
                <ext id="flash.text:TextField" />
                <ext id="mx.utils:ObjectUtil" />
                <ext id="flash.system:Security" />
                <ext id="mx.skins.spark:ScrollBarThumbSkin" />
                <ext id="RegExp" />
                <ext id="flash.system:ApplicationDomain" />
                <ext id="mx.messaging.messages:ErrorMessage" />
                <ext id="mx.rpc.events:FaultEvent" />
                <ext id="mx.events:PropertyChangeEvent" />
                <ext id="flash.events:FocusEvent" />
                <ext id="mx.core:UITextField" />
                <ext id="flash.net:registerClassAlias" />
                <ext id="mx.skins.halo:HaloFocusRect" />
                <ext id="mx.messaging.messages:AsyncMessage" />
                <ext id="mx.collections:ArrayList" />
                <ext id="mx.managers.systemClasses:ChildManager" />
                <ext id="mx.messaging.messages:MessagePerformanceInfo" />
                <ext id="mx.messaging.messages:AcknowledgeMessage" />
                <ext id="flash.net:getClassByAlias" />
                <ext id="flash.display:BitmapData" />
                <ext id="flash.geom:Rectangle" />
                <ext id="flash.events:ErrorEvent" />
                <ext id="trace" />
                <ext id="mx.skins.spark:ButtonSkin" />
                <ext id="mx.skins.spark:ScrollBarUpButtonSkin" />
                <ext id="mx.rpc.events:ResultEvent" />
                <ext id="Object" />
                <ext id="mx.core:SpriteAsset" />
                <ext id="flash.text:TextFormat" />
                <ext id="flash.display:Sprite" />
                <ext id="mx.messaging.config:ConfigMap" />
                <ext id="mx.skins.halo:ToolTipBorder" />
              </external-defs>
            </report>

            • 3. Re: READY event not firing in module (FB4)
              Flex harUI Adobe Employee

              This looks like the link report for modAbout.mxml, which is a module, not

              the main app.

              • 4. Re: READY event not firing in module (FB4)
                freevryheid Level 1

                Flex harUI wrote:

                 

                This looks like the link report for modAbout.mxml, which is a module, not

                the main app.

                 

                I generated the link report via a compiler setting for the project:

                 

                -locale en_US -link-report=c:/temp/externs/report.xml

                • 5. Re: READY event not firing in module (FB4)
                  Flex harUI Adobe Employee

                  I don't build module projects with the tools (I use ant scripts).  Somehow,

                  the Flex project should already be creating a link-report in order to

                  optimize the modules, but I don't know where it gets stored or if it is

                  temporary.  I believe that when you add in a link-report compiler option,

                  the modules also generate their link-reports with the same file name,

                  overwriting the prior ones.

                  1 person found this helpful
                  • 6. Re: READY event not firing in module (FB4)
                    freevryheid Level 1

                    I've conceded defeat - this is too frustrating.

                    • 7. Re: READY event not firing in module (FB4)
                      Flex harUI Adobe Employee

                      BTW, did you verify that you get PROGRESS and/or COMPLETE events when

                      loading the module?

                      • 8. Re: READY event not firing in module (FB4)
                        freevryheid Level 1

                        I didn't check -

                         

                        I've decided to redesign the app and all is well. I can't prove it but I suspect the problem was related to using spark components in the module. I changed from a s:TitleWindow to an mx:TitleWindow and everything works OK. Thanks for responding.

                         

                        A

                        • 9. Re: READY event not firing in module (FB4)
                          freevryheid Level 1

                          or if you want to use sparks then hack a popup into the main app before calling the module.

                           

                          var pop:msgBox = msgBox(PopUpManager.createPopUp(this, msgBox, false) as msgBox);
                          PopUpManager.centerPopUp(pop);

                          • 10. Re: READY event not firing in module (FB4)
                            Darrell Loverin Level 4

                            I'd recommend folks listen for ModuleEvent.ERROR. You should get this event in you don't get a ready event.

                             

                             

                            -Darrell