Feature idea from adobe Flex: skinState

Isnt this something that could be achieved with css?

http://haxeui.org/builder/?qejtsb

Ive used psuedo classes there, but you could just use addClass for “normal” css rules, ie, .button.state1:hover { ... }