0

我正在使用链接栏,默认情况下,当我单击链接时,它会在链接背景中显示蓝色。我想将这种蓝色更改为绿色。我怎么做?

4

1 回答 1

0

您可以尝试以下方法:

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

或者像这样创建一个自定义按钮:

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;
}
于 2013-05-02T06:52:09.610 回答