Getting rid of a button’s border/linkbutton’s background roll over state in Flex

Posted by Dennis on Oct 21, 2008 in Flex17 comments

Some 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");
}


Tags: , , , ,


17 comments

» Comments RSS Feed
  1. Nice trick, Oom! :-)

  2. 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…

  3. Thanks for the tip, saved me at least 20 minutes :)

  4. sweet! just what i needed!

  5. Perfect, thanks!

  6. Dude, this is awesome. I was about to get very frustrated with Flex but that saved my day. Worked perfectly!

  7. When I do this then the button disappears totally. Don’t you have to program the programmatic skin?

  8. Thank you so much. I use it like this…

  9. Wow thanks Dennis, this saved me from a lot of trouble! Trying to skin with transparent PNG’s…doesn’t work so well lol.

  10. Very good and simple solution thanx for sharing.

  11. Perfect :D

  12. Thanks for this info!! Saved me lots of time!

  13. Thanks Brother Save lot of Time, thanks for sharing

  14. thanks man ! really appreciate this :)

  15. Same comment as Dan, button just disappears. Don’t seem to remove just border, removes the entire skin including background colors.

  16. Heyyaaa…nice solution..it worked………. :)

  17. [...] You could also set the Class Reference to “mx.skins.ProgrammaticSkin”, rather than null, as pointed out by this guy. [...]

Leave a comment