Solved

Changing color of entire button

Posted on 2011-03-03
2
295 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Get Database Help Now w/ Support & Database Audit

Keeping your database environment tuned, optimized and high-performance is key to achieving business goals. If your database goes down, so does your business. Percona experts have a long history of helping enterprises ensure their databases are running smoothly.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Remember last page selection - swf file 3 300
AIR Desktop App - open PDF file 6 952
Display PHP content using Adobe AIR 9 480
how can flash builder 4.X version make use of java 8 5 434
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…
Unified and professional email signatures help maintain a consistent company brand image to the outside world. This article shows how to create an email signature in Exchange Server 2010 using a transport rule and how to overcome native limitations …
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
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 …

752 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