halo 和 mx 命名空间之间的区别
据我所知,对library://ns.adobe.com/flex/halo命名空间的支持已被删除,现在我们必须使用library://ns.adobe .com/flex/mx(参考) 。有人可以提供这两个名称空间之间是否有任何区别吗?
我刚刚开始学习 Flex,这个变化让我很困惑。例如,如果我的 mxml 文档中有一个
标记,编译器会抱怨
无法解析为组件执行。但是,如果我将 mx 命名空间更改为使用旧的命名空间(晕),它就会成功编译,没有错误。
更新: 顺便说一句,我在Windows中使用Flex SDK命令行编译器。
mxmlc --version
Version 4.0.0 build 10485
As far as I know, the support for library://ns.adobe.com/flex/halo
namespace has been dropped, and now we have to use library://ns.adobe.com/flex/mx
instead (reference). Can someone provide if there's any difference between the two namespaces?
I am just starting to learn Flex and this change make me confused. For example, if I have an <mx:Tree>
tag in my mxml document, the compiler complains that <mx:Tree>
could not be resolved to a component implementation. But if I change my mx namespace to use the old one instead (halo), it successfully compiled without error.
Updated:
By the way, I use Flex SDK command line compiler in Windows.
mxmlc --version
Version 4.0.0 build 10485
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Adobe 更改了“halo”命名空间,以便更清楚地将其与 Spark 命名空间区分开来。您所需要做的就是查找/用新的 URI 替换旧的 URI。现有的 halo 组件将继续像新命名空间一样工作。
Adobe changed the "halo" namespace in order to more clearly differentiate it from the spark namespace. All you need to do is find/replace the old URI with the new one. The existing halo components will continue to work as is just with a new namespace.