切换按钮 - Flex
我在动作脚本中有一个带有toggle=“true”的按钮。现在,当我单击按钮时,它的颜色会发生变化,看起来好像它已被禁用(但实际上没有)。我需要知道这个按钮的哪个属性发生了变化?例如,如果我需要在代码中的某个位置了解此按钮的“切换状态”(如果有任何此类内容),我应该检查此按钮的哪个属性?
谢谢。
I have a button in action script with toggle="true". Now when I click the button its color changes and it looks as if it has been disabled (but its actually not). I need to know which property of this button has changed? For example if I need to know somewhere in my code the "toggled state" (if there is any such thing) of this button, which property of this button should I check?
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Button.selected
是您所寻找的,我做了一个例子来演示这一点:Button.selected
is what your looking for, I made an example to demonstrate this: