开发者

Flex 3 LinkButton: Keep style unchanged on mouse-hover

开发者 https://www.devze.com 2023-03-09 23:57 出处:网络
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?

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

精彩评论

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