Getting rid of a button’s border/linkbutton’s background roll over state in Flex
Posted by Dennis on Oct 21, 2008 in Flex • 11 commentsSome Flex components have visual elements that cannot be controlled with CSS. Have you ever tried removing the border of a Button or the roll over background color of a LinkButton? I had this problem a few times before and the solution to this is very simple. Just reset the skin
.myButtonStyle
{
skin: ClassReference("mx.skins.ProgrammaticSkin");
}




Nice trick, Oom!
HI,
Thanks, but if stylesheet is not applicable then how can we change this also. Please help me. I am not able to change background colour of link button. Its urgent.
Regards…
Thanks for the tip, saved me at least 20 minutes
sweet! just what i needed!
Perfect, thanks!
Dude, this is awesome. I was about to get very frustrated with Flex but that saved my day. Worked perfectly!
When I do this then the button disappears totally. Don’t you have to program the programmatic skin?
Thank you so much. I use it like this…
Wow thanks Dennis, this saved me from a lot of trouble! Trying to skin with transparent PNG’s…doesn’t work so well lol.
Very good and simple solution thanx for sharing.
Perfect