Flex 4 中的 Halo 和 Spark 有何关系?

发布于 2024-09-27 07:04:37 字数 754 浏览 2 评论 0原文

我使用 Flex 2/3 几年了,刚刚回来使用它,升级到 Flex 4。我看到了一些对 Halo 和 Spark 主题的引用,但我在之前的工作中从未涉及过主题,所以我是有点困惑发生了什么事。 Halo 是默认主题,这是否正确,或者这是全新的主题?

另外,我使用了一个简单的 Flex 3 MXML 并尝试使其在 Flex4 中工作:

<?xml version="1.0" encoding="utf-8"?>
<mx:Application
    xmlns:fx="http://ns.adobe.com/mxml/2009"
    xmlns:mx="library://ns.adobe.com/flex/mx"
    layout="absolute" borderStyle="none" borderColor="#000000" cornerRadius="0" 
    backgroundGradientAlphas="[1.0, 1.0]" backgroundGradientColors="[#000000, #FF0000]"
    width="800" height="600"
    frameRate="20">
</mx:Application>

但我收到错误,例如“错误:样式 'backgroundGradientColors' 仅受主题为 'mx.core.Application' 类型支持(s) 'halo'。

我尝试了一些方法,但每一种方法都引入了自己的错误。

I used Flex 2/3 for a couple of years and have just come back to it, upgrading to Flex 4. I'm seeing some references to Halo and Spark themes but I never got into themes in my previous work so I'm a bit confused what's going on. Am I correct that Halo was the default theme, or is this all new?

Also, I took a simple Flex 3 MXML and tried to make it work in Flex4:

<?xml version="1.0" encoding="utf-8"?>
<mx:Application
    xmlns:fx="http://ns.adobe.com/mxml/2009"
    xmlns:mx="library://ns.adobe.com/flex/mx"
    layout="absolute" borderStyle="none" borderColor="#000000" cornerRadius="0" 
    backgroundGradientAlphas="[1.0, 1.0]" backgroundGradientColors="[#000000, #FF0000]"
    width="800" height="600"
    frameRate="20">
</mx:Application>

But I get errors, like "Error: The style 'backgroundGradientColors' is only supported by type 'mx.core.Application' with the theme(s) 'halo'."

I tried a few things but each one introduced its own errors.

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

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

发布评论

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

评论(1

向日葵 2024-10-04 07:04:37

Flex 4 引入了一种新的组件架构,称为“Spark”。 “Halo”指的是Flex 3 组件架构。

Flex 4 introduced a new component architecture, called "Spark". "Halo" refers to the Flex 3 component architecture.

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