In CSS you can address certain states of a component using pseudo states
(states) like so:
s|Button#iconOnlyButton:up {
icon: "assets/upImage.png";
}
s|Button#iconOnlyButton:over {
icon: "assets/overImage.png";
}
s|Button#iconOnlyButton:down {
icon: "assets/downImage.png";
}
But you can't do the same thing in MXML.
You *can* address document level states in MXML like so:
<s:Button icon="default.png" icon.about="about.png"/>
<s:states>
<s:State name="home" />
<s:State name="gallery" />
<s:State name="feedback" />
</s:states>
But that doesn't let you assign values to states of the component. This
will throw an error:
<s:Button icon="default.png" icon.up="about.png"/>
While this CSS will not:
s|Button#iconOnlyButton:up {
icon: "about.png";
}
Is it possible to add support for inline pseudo states like we do with CSS?
Does anyone else want this? How would we do it?
Jude