0

我目前正在使用 Flex Hero mobile 4.5 开发移动程序。我已经搜索了一些论坛,但没有人可以帮助我。

如何更改移动程序的背景颜色。我已经尝试过使用:

this.setStyle("backgroundColor","0x00FFFF");

有人知道如何做到这一点吗?你应该帮我很多。

亲切的问候,

蒂博海伦

4

2 回答 2

1

在 ViewNavigator 应用程序中

编写流动代码

 <fx:Style>
        @namespace s "library://ns.adobe.com/flex/spark";
        s|View{
            backgroundColor:#000000;
        }
 </fx:Style>    
于 2011-06-16T09:44:23.317 回答
0

Strange, there's only opaqueBackground property on the View classes which doesn't seem to do much, so you might have to just fill it with a Rectangle.

于 2011-05-05T12:39:55.060 回答