views:

846

answers:

3

Hello

How can i change the color, when the user mouse over an item on datagrid or tilelist. Basically once the user mouse overs and once the user selects a file. How to change the default color to something else.

The default is blue and i dont like it :)

Thanks.

A: 

You need to change the styles for those items, the setting is rollOverColor. If you added those controls through mxml you can just add those as attributes.

invertedSpear
+2  A: 

The most powerful tool to manage about graphics effects, color and much more is Flex Style Explorer, which is useful to create .css style sheets for you own Flex/Air application. You can export the .css properties into your Flex project, create yourStyleSheet.css, put it into src folder and than call the file by the following statement:

<mx:Application ... />
<mx:Style source="yourStyleSheet.css" />
Franky
A: 

If you're using CSS to layout your Flex components you might want to have a lock at the Flex 3 Style Explorer. You can setup your layout for specific components and directly export the CSS code either to your external stylesheet or your tags within your mxml code. Hope this helps.

Colins