Explicit support for Module base application

25 06 2007

Imagine if your application has 1000 or more pages with high end graphics and animation. You must think about performance. The simple answer is module base application.

Module, It was really great feature of “flex 2.0.1 hot suffix 2.0 SDK” but in flex builder 2.0 was not having explicit support for Module based application. Therefore we have to make separate modules, compiling report.xml, then recompile all the modules ….. ohhhh that was really frustrating process.

But now flex 3.0 has explicit support of module based application. That means flex builder itself will handle all this process. Here I have tried to explain how flex builder 3.0 supports modules.


Create Module more easily

To create new module just right click on your project and select new module. It will ask you name of the module. There is one other combo box with label of optimize size for application. Now this is some thing really good in flex builder 3.0. This feature will generate report.xml file and optimize your application for selected application.

This action will add tryThisOut.mxml module to your project.


If you are creating 100% liquid module which should fit in to your module loader container, then you have to use percentageWidth and percentageHeight properties of module class. Check below image

Now when you press ctrl +b or press “Build all buttons”, it will generate tryThisOut.swf file in your output folder. Then after you can load this module wherever you require.

Manage modules

Flex 3.0 adds modules to project when you create new one. But if you want to copy and paste module from other project to your current project you have to add manually. To do that just right click on current project on navigator window then after click on property button at the bottom of the pop up menu. You will find module link on open dialog box. There is one button “add” on right side. You can simply add module. You can also edit existing module from the same window.

Debug modules

You have to just allow modules for debugging by clicking on enable debugging modules. That will allow you to debug your modules

Hope this will help you.

Find more about modules @ https://bkflex.files.wordpress.com/2007/06/modular.pdf

Rock on module 🙂

Add [27-06-2007]

Optimising Modules

Don’t use the classes that have been compiled in the application in the module. Compile without them as they are not needed.

You can use the link report to identify modules that you don’t need.





4 responses

26 06 2007
27 06 2007
Anand Vardhan

Hmm sahi hai
keep it up dude .. m proud of you. bhai kuch hum logo ko bhi bata de .. kuch padh likh jayegnge 😉

27 06 2007

thanks Ananad 🙂

3 08 2007
Sönke Rohde » Flex & Modules

[…] in Alex 360 Flex presentation and check the livedocs. About the new Moxie features also check BK Flex blog entry. Bookmark to:           – Posted in Flash, […]

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: