Thibault
Thibault

Reputation: 27

Flex hero mobile set backgroundcolor

I'm currently working with Flex Hero mobile 4.5 to develop a mobile program. I have searched some forums allready but nobody can help me with this.

How do you change the backgroundcolor of your mobile program. I have allready tried to use:

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

Does somebody has an idea on how to do this? You should help me a lot.

Kind regards,

Thibault Heylen

Upvotes: 0

Views: 2059

Answers (2)

ramakrishna
ramakrishna

Reputation: 11

In ViewNavigatorApplication

write flowing code

 <fx:Style>
        @namespace s "library://ns.adobe.com/flex/spark";
        s|View{
            backgroundColor:#000000;
        }
 </fx:Style>    

Upvotes: 1

dain
dain

Reputation: 6689

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.

Upvotes: 0

Related Questions