MXML 组件)和“模块”(新建 –> MXML 模块)有什么区别? 谢谢, 大卫 最佳答案 模块被编译成 SWF 并在运行时使用 ModuleLoader -6ren">
gpt4 book ai didi

apache-flex - 弹性 : What's the difference between an MXML "Component" and an MXML "Module"?

转载 作者:行者123 更新时间:2023-12-03 21:20:33 24 4
gpt4 key购买 nike

正如标题所暗示的,“组件”(New –> 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.



希望有帮助!

关于apache-flex - 弹性 : What's the difference between an MXML "Component" and an MXML "Module"?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1008245/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com