开发者

Set button's state depending on the global state in Flex 4

开发者 https://www.devze.com 2022-12-28 16:24 出处:网络
How can I set my button\'s state to \"over\" when , for example , my global state is \"Home\"? Thanks in adv开发者_StackOverflowanceOK the problem was that my button had a custom skin. So the only th

How can I set my button's state to "over" when , for example , my global state is "Home"?

Thanks in adv开发者_StackOverflowance


OK the problem was that my button had a custom skin. So the only thing I had to to was to write

if(currentState == "Home") { mybutton.skin.setCurrentState("over",true); }

0

精彩评论

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