开发者

Adding states in a button in flex 4

I would like to know if there is a way to add states to a button in flex 4 in addition to the default states that are present. I am unable to find any material 开发者_Go百科on this. Kindly guide me to an appropriate resource.


You can add something like: [SkinState("myNewState")]; to a component which extends from Spark Button.

You can also make your own ButtonSkin add states there as well: <s:states> <s:State name="normal"/> <s:State name="disabled"/> </s:states>

I've used it to extend a TextInput but I assume it's the same for a Button :)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜