开发者

Flex: should I define components path in each module or just main application mxml?

I'm implementing a Flex application with several modules. I'm reusing the same component in all these modules.

I was wondering if I'm correctly importing it in each mxml module definition:

   ... xmlns:hillelcoren="com.hillelcoren.components.*" ...
开发者_C百科

Should I import it only once, in the main application mxml instead ?

thanks


You will have to import the shared component into each. Flex will compile a copy of your shared component into each module's SWF. If you want to truly share the component you will have to move it to it's own module and have each module in turn depend on that one.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜