In adobe flex: an interesting feature you could use for haxeui was the skinStates
you were able to define states for a xml skin description (mxml). and setting different values of attributes for each state
width=“50” for default state and width.state2=“100” for value in state2 etc. and when setting current state of component to state2 the attributes get automatically the corresponding value.
it gets the xml a bit more durty but it is usefull for rapid devlopment
especially with a designer tool for previewing the states results.