Solved

Changing color of entire button

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Flash builder 101 tutorial 3 409
Flex 4.6  -- how to debug runtime errors 3 828
Access 2010 simple password issue. 2 321
Adobe license 6 260
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…
In this article, I will show you HOW TO: Perform a Physical to Virtual (P2V) Conversion the easy way from a computer backup (image).
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

706 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now