开发者

Flex: Modules v/s Components for a large scale project

I am planning on a Flex project that involves incorporation of a lot of features.

Each 'feature' can开发者_高级运维 be a component / module.

Which is preferred and what is the difference between a module and a component?

Thanks


The short answer is that it depends.

If you going to use all, or most, of your components during regular execution of the application - components would be alright.

By the sounds of things though, modules might be the better bet for your project.

Modules allow you to group components into external libraries (RSLs). These libraries can be embedded into your application (through project settings) or can be loaded dynamically at runtime (as separate files).

Modules would give you some benefits

  1. Only loading the libraries needed (as needed) instead of all modules everytime.
  2. Load only core modules initially to speed up the initial load time.
  3. Changes to a component do not require you to recompile the application/


Find out more about creating modules here.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜