Archive for 'Modules'
Flex Modules, Watch Your Scope!!
14 August 2008Here’s another help hint for those working with Modules in Flex: Watch your variable scope!!
When loading modules, you have a number of options for loading the SWF including the ModuleLoader and ModuleManager. If neither of those fit your needs you always have access to Flash’s Loader class. ModuleManger can be used for fine […]
Pipe Demo: Mortgage App
17 June 2008I’ve posted a pipes version of the mortgage app.
Things to note:
You can load / unload the modules dynamically.
A junction mediator is defined for each ‘player.’ In the mortgage app context that’s a mediator for the application itself, the Acme widget and the Foo widget.
ApplicationJunctionMediator
ModuleJunctionMediator (Acme)
ModuleJunctionMediator (Foo)
To make our lives easier when it comes […]
Understanding PureMVC Pipes
15 June 2008Disclaimer: This a bit of a longer post!!
The pipes utility is newer to PureMVC and as such, I’ve seen questions on the blogosphere regarding it’s use.
The plumbing metaphor should help wrap you head around this utility and it’s use. Keep in mind that a pipe allows for one-way message flow.
So let’s […]
Loaded Module Dimensions - Width / Height
13 June 2008Ran across a problem regarding the display size of dynamically loaded modules today. The module was a subclass of ModuleLoader. The module would size to the minWidth / minHeight I had specified but would ignore width=”100%” for height=”100%”.
This Adobe Tech note states that your module should use ‘percentWidth’ and ‘percentHeight.’ I […]
Pipe Architecture
13 June 2008Here’s a working architecture for modular applications utilizing PureMVC pipes.
This allows you to have modules that load modules that load modules, etc. The modules communicate to each other via Pipes.
The sample diagram illustrates a parent, child, grandchild relationship (An app that loads a module that loads module). You can of […]
PureMVC Pipes
12 June 2008I had a chance to work with Cliff Hall’s PureMVC ‘Pipes’ utility this week. Highly recommended.
If your interested in utilizing modules in your PureMVC projects, you owe it to yourself to take a look at the Pipes utility.
What’s needed to integrate a module?
The requirements are very light. You module should:
Implement IPipeAware
Create a JunctionMediator.
Thats […]
AS3 PureMVC Dynamic Modules
24 May 2008Okay, I’ve had some questions on refactoring my PureMVC dynamic modules classes to support AS3 projects (i.e. no flex).
I’ve posted a sample app that does just that.
I threw this together off the cuff, so don’t expect too much
The app (10K) simply loads 6 modules dynamically, 3 “RedTint” modules and 3 “GreenTint” […]
Dynamic Modules … General Tips
21 May 2008Okay, for those of you getting ready to work with dynamic modules, I thought I’d share a few minor points I picked up on this past week.
Your application must include a reference to any interfaces the module implements.
<mx:Moudule implements”com.company.project.SomeInterface”>
You’d want a reference to com.company.project.SomeInterface in your main app.
Likewise if the module has subclassed Module
public class […]
Dynamic Flex Modules with PureMVC
19 May 2008I’m rolling out a large project, and I wanted to utilize dynamic modules for scalability.
For those who aren’t familiar will modules, basically, there a great way to encapsulate “pieces” of your application. A trivial example would be a small ’shell application’ that once the user logs in, loaded the appropriate use-case module. […]









