开发者

Adding states in a button in flex 4

开发者 https://www.devze.com 2023-01-11 15:21 出处:网络
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

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

精彩评论

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

关注公众号