How to change the default Roll over color of LinkBar

I am using link bar and by default when I click on the links it shows the blue color in the link background. I want to change this blue color to green color. How do I do that?

Answers


You can try something like:

var colorTransform:ColorTransform = linkbar.transform.colorTransform;
colorTransform.color = 0x009900;
linkbar.transform.colorTransform = colorTransform;
linkbar.alpha = .2

Or create a custom button like this:

LinkButton
{
    textRollOverColor: #006699;
    textSelectedColor: #003366;
    /* Yes, this one controls the selected button's text color */
    disabledColor: #0099cc;

    /*Use DownSkin for Disabled to simulate Active/Selected Button */
    disabledSkin: Embed(source="theme1.swf", symbol="LinkButton_downSkin");
    downSkin: Embed(source="theme1.swf", symbol="LinkButton_downSkin");
    overSkin: Embed(source="theme1.swf", symbol="LinkButton_overSkin");
    upSkin: Embed(source="theme1.swf", symbol="LinkButton_upSkin");
    font-size: 14;
    font-weight: bold;
}

Need Your Help

Print stack trace information from C#

c# parsing error-handling stack-trace

As part of some error handling in our product, we'd like to dump some stack trace information. However, we experience that many users will simply take a screenshot of the error message dialog inste...

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.