Solved

Changing color of entire button

Posted on 2011-03-03
2
289 Views
Last Modified: 2012-05-11
hi guys

I am using flex 3.x  , is there any way i can set the background color for a button ? I am using only <mx: tags
Right now i have <mx:Button label="Delete"  color="#000065"  />  which changes color of text only.
 But i want to change the color of the entire button, is that possible?

thanks
0
Comment
Question by:royjayd
2 Comments
 
LVL 4

Accepted Solution

by:
ute_arbeit earned 400 total points
ID: 35032622
Use the fillColors property. It is an array of two colors for the gradient fill. If you want to have a solid background color use the same value twice. For example to get a button with red background use:

<mx:Button fillColors="[#FF0000,#FF0000]" label="Delete"/>

Open in new window


With fillAlphas you can change the alpha for the fill gradient and so for your background color. For example to get a button with opaque red background use:
<mx:Button fillColors="[#FF0000,#FF0000]" fillAlphas="[1.0,1.0]" label="Delete"/>

Open in new window

0
 

Author Comment

by:royjayd
ID: 35032826
0

Featured Post

Free eBook: Backup on AWS

Everything you need to know about backup and disaster recovery with AWS, for FREE!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

First things first - Preparation We need all the part for this install and it's much nicer to have them all on hand when you need them so here's what's required. Download Eclipse 3.5 32 bit (I like the Classic flavour) from here. (http://www.e…
While it may be true that the internet is a place of possibilities, it is also a hostile environment lurking with many dangers. By clicking on the wrong link, trusting the wrong person or using a weak password, you are virtually inviting hackers to …
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

713 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question