“边框厚度”仅受光环主题支持” Flex 命名空间警告

发布于 2024-08-27 22:47:15 字数 428 浏览 4 评论 0原文

自从我升级到 flash builder 4 以来,我试图了解我的命名空间发生了什么。

应用程序中的 xmlns:mx="http://www.adobe.com/2006/mxml"

在样式表中:

@namespace mx "library://ns.adobe.com/flex/mx";

一切似乎都被正确识别,但是,我收到一条警告:

“borderThickness”仅受光环主题支持

(我认为是在 mx 主题中)。

现在,当我尝试 xmlns:s="library://ns.adobe.com/flex/mx" 时,它无法识别任何内容。我在这里可能做错了什么或令人困惑吗?

I'm trying to understand what is going on with my namespaces since I upgraded to flash builder 4.

xmlns:mx="http://www.adobe.com/2006/mxml" in the application

and in the stylesheets:

@namespace mx "library://ns.adobe.com/flex/mx";

Everything seems to be recognized correctly, however, I get a warning that says:

"borderThickness" is only supported by the halo theme

(which I thought was in the mx theme).

Now, when I try xmlns:s="library://ns.adobe.com/flex/mx" then it doesn't recognize anything. Is there something I might be doing wrong here or confusing?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

青瓷清茶倾城歌 2024-09-03 22:47:15

mx 是 mx 组件的默认前缀 - 它们是您从 Flex 3 开始使用的组件。它的 URI 应该是library://ns.adobe.com/flex/mx

s 是 Spark 组件的默认前缀。它们是flex 4中添加的新组件。它的URI应该是library://ns.adobe.com/flex/spark

有关更多信息,请参阅此文档:http://www.adobe.com/devnet/flex/articles/flex3and4_differences_03.html

mx is the default prefix for mx components - they're the components you're used to from flex 3. it's URI should be library://ns.adobe.com/flex/mx

s is the default prefix for spark components. They're the new components added in flex 4. It's URI should be library://ns.adobe.com/flex/spark

for more info, see this document: http://www.adobe.com/devnet/flex/articles/flex3and4_differences_03.html

昔梦 2024-09-03 22:47:15

如上所述,您需要确保将 mxml 文件中的 ns 声明更改为:

xmlns:fx="http://ns.adobe.com/mxml/2009"

xmlns:mx="library://ns .adobe.com/flex/mx"

xmlns:s="library://ns.adobe.com/flex/spark"

话虽如此,我已经注意到当您第一次将这些命名空间添加到最初在 FB3 中构建的文件中时,FB4 会有些奇怪。有时它不会对一些旧的光环组件进行代码完成。在我的上,它会神秘地创建一个我什至没有声明的虚构的“mx1”命名空间。大多数时候,我发现关闭编辑器窗口并清理项目,然后重新打开文件似乎可以解决问题。

as quoo stated above, you need to make sure you change the ns declarations in your mxml files to:

xmlns:fx="http://ns.adobe.com/mxml/2009"

xmlns:mx="library://ns.adobe.com/flex/mx"

xmlns:s="library://ns.adobe.com/flex/spark"

That being said however, I have noticed some wonkiness with FB4 when you add these namespaces for the first time to a file that was originally built in FB3. Sometimes it will not code-complete some old halo components. On mine, it will mysteriously create a fictitious "mx1" namespace that I haven't even declared. Most times I've found that closing the editor window and doing a project clean, then re-opening the file seems to fix the problem.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文