开发者

Flex 3 LinkButton: Keep style unchanged on mouse-hover

I want a LinkButton's style to stay unchanged when the mouse hovers over it. (But I still want the tooltip to work.) How do I do this?

(The mouseOver event seems relevant, and I do a noop() on that event, but my goal is to leave the style u开发者_JS百科nchanged rather than do something specific.)

By the way, I am using a non-default style, defining it with CSS in the MXML.


I haven't tried this, but you could set the 'overSkin' style to null in your CSS:

LinkButton
{
   over-skin:null;
}


An in-line approach:

<mx:LinkButton 
    id="mrButton"
    width="80"
    label="Mr. Button"
    skin="{null}"
    toolTip="I am Mr. Button"/>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜