Hi,

No doubt modules optimize your code, but you cant go replacing all your
components with the Modules. Module should be a mini application in itself,
performing some major functionality of your application. All I need to say
is that MODULE is broader in sense than just a component.

The benefit you get in Modularization is that each Module turns out to a
separate .swf and and doesnot contribute to the size of your main
application. While the components gets compiled into your application making
your application file bigger in size and therefore increases the loading
time. There are many other uses as well, list is long.

Instead of modules, you should make it to a single  .swc  file containing
all your components (see Flex Library Project).

In that case your components will be in a separate .swc file.

Now you have the option to merge the .swc file into the code or use it as
RSL.


   - If you merge it in code, then it will add weight to you main
   application.
   - If you use it as RSL, it will again make a separate .swf and the
   components will be loaded at runtime, making your application lighter and
   faster to load.





On Fri, Mar 5, 2010 at 3:02 PM, Kiran Kumar Vasireddy
<[email protected]>wrote:

> Dear All,
>
> Could some flex (Version 3)  experts share your ideas on this ( may be best
> approach) ? I am using components in my application and read about modules
> and changed components to Modules and loading them at run time .
>
> 1) If I am using RSL when making a build do you think Modules makes any
> difference from Components for performance?
>
> 2) I have a home screen with around 10 components and username and password
> to Login to Application . If the Login is successful I am deleting all the
> components on the home screen and adding my main component . Again if the
> user clicks on signout button on Main component , I am deleteing the main
> component and adding the home screen components again . Can some body give
> some good approach for this general approach?
>
>  Homepage -> User enters valid credentials  ->  Login Screen -> Signout
> ->Homepage .
>
> Regards
> Kiran
>
> --
> You received this message because you are subscribed to the Google Groups
> "Flex India Community" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<flex_india%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/flex_india?hl=en.
>



-- 
Thanks,
Vaibhav Seth.

-- 
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en.

Reply via email to