Solved

Changing color of entire button

Posted on 2011-03-03
2
284 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

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…
The advancement in technology has been a great source of betterment and empowerment for the human race, Nevertheless, this is not to say that technology doesn’t have any problems. We are bombarded with constant distractions, whether as an overload o…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

790 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