Solved

Changing color of entire button

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

Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

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…
This article describes how to import Lotus Notes Contacts into Outlook 2016, 2013, 2010 and 2007 etc. with a few manual steps. You can easily export and migrate Lotus Notes contacts into Microsoft Outlook without having to use any third party tools.
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

636 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