RSS Feed Email Feed

Modularization of Flex Applications – Conclusions

Hey guys,

I was in a Yakov Fain lecture about modularization of flex applications yesterday and it was great, the lecture was organized by Almog Koren, so Almog, Thanks!

As a matter of fact, I already saw this lecture on the internet, but this time I took notice of several new discoveries I wanted to share with you.

Few Tips from the presentation



When loading modules -

you don’t have to load RSL in the main app, only link it as such to the module itself


Merge into Code -

Yakov reminded us that in this linkage option, only classes I used will be compiled into the swf, for more information read my post on Flex linkage types: Merge into code, RSL and External


Fonts slow the compilation –

so always compile your css which embed the fonts as a separate SWF file, and load it dynamically.


Shared Events between modules -

When working with modules, apparently you can listen to and dispatch events from systemManager.loaderInfo.SharedEvents from the main Application.

And on the Module you can listen to and dispatch events from loaderInfo.ShareEvents

That way you can create a simple communication layer between modules and other modules, and between modules and the main application which loaded them.


Preloader as a flash content  –

In his book “Enterprise flex application” he gives and example of using a flash preloader swf who looks like the initial login page in your application, and on the background he loads the rsls while the user verify his details.

It’s a nice concept to think of, especially when you have lots of rsls to load in the preloading of the Application.


That’s is what I gathered from the lecture, here are the slides

Hope it helps someone out there….

Shai

Leave a Comment