加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

Flex:MXML“组件”和MXML“模块”有什么区别?

发布时间:2020-12-15 02:15:27 所属栏目:百科 来源:网络整理
导读:如标题所示,“组件”(新 – MXML组件)和“模块”(新 – MXML模块)之间有什么区别? 谢谢, 大卫 解决方法 模块被编译成SWF并在运行时加载了ModuleLoader,而MXML组件被编译成一个应用程序.从Flex文档: Modules are SWF files that can be loaded and unloaded
如标题所示,“组件”(新 – > MXML组件)和“模块”(新 – > MXML模块)之间有什么区别?

谢谢,
大卫

解决方法

模块被编译成SWF并在运行时加载了ModuleLoader,而MXML组件被编译成一个应用程序.从Flex文档:

Modules are SWF files that can be
loaded and unloaded by an application.
They cannot be run independently of an
application,but any number of
applications can share the modules.

Modules let you split your application
into several pieces,or modules. The
main application,or shell,can
dynamically load other modules that it
requires,when it needs them. It does
not have to load all modules when it
starts,nor does it have to load any
modules if the user does not interact
with them. When the application no
longer needs a module,it can unload
the module to free up memory and
resources. […]

Modules are similar to Runtime Shared
Libraries (RSLs) in that they separate
code from an application into
separately loaded SWF files. Modules
are much more flexible than RSLs
because modules can be loaded and
unloaded at run time and compiled
without the application.

希望有帮助!

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读