Modular Utility and R.L. 1.1.2

oscar's Avatar

oscar

23 Jul, 2010 11:31 PM

Hi,

Is the current RL Modular Utility written by Joel comparable with R.L. 1.1.2?

Tks.

  1. 1 Posted by oscar on 24 Jul, 2010 04:49 PM

    oscar's Avatar

    This is a test project using Modular

  2. 2 Posted by arjen10822 on 22 Aug, 2010 04:18 PM

    arjen10822's Avatar

    Hi Oscar,

    Looking for an example to load modules dynamically at runtime, I found your question and your ModularTest.fxp test project.

    I tried your ModularTest with R.L. 1.1.2. and the latest version (june, 7 2010) of Joel Hooks Modular Utility and got the following warnings:

    • modules.m1:M1 is a module or application that is directly referenced. This will cause modules.m1:M1 and all of its dependencies to be linked in with Main.
      Using an interface is the recommended practice to avoid this.

    • modules.m2:M2 is a module or application that is directly referenced. This will cause modules.m2:M2 and all of its dependencies to be linked in with Main.
      Using an interface is the recommended practice to avoid this.

    I then added Interfaces to the modules and the property applicationDomain to the moduleLoader.
    With these changes ModularTest works fine with R.L. 1.1.2. and the Modular Utility.

    Arjen

    I attached ModularTest1.zip containing the following changes:

    • added interface files: interfaces.IM1Module, interfaces.IM2Module
    • module.m1.M1.mxml now implements interfaces.IM1Module
    • module.m2.M2.mxml now implements interfaces.IM2Module
    • Maincontext.as now mappes the interfaces for automatic injection (viewMap.mapType( IM1Module); viewMap.mapType( IM2Module);)
    • Main.mxml has property applicationDomain added to the ModuleLoader (<mx:ModuleLoader id="ml" applicationDomain = "{ApplicationDomain.currentDomain}" />)
  3. Stray closed this discussion on 10 Feb, 2011 05:41 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac