如何手动触发一个按钮的Flex悬停状态? [英] How do I manually trigger a buttons hover state in Flex?
本文介绍了如何手动触发一个按钮的Flex悬停状态?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要触发的Flex键悬停状态编程,使其看起来像用户盘旋在它。有一个关于手动指派事件柔性页:
I need to trigger the hover state of a Flex button programatically, so that it looks like the user is hovering over it. There is a flex page about "Manually dispatching events":
http://livedocs.adobe.com/柔性/ 3 / HTML / help.html?内容= events_07.html
这将工作,但我真的很想做的是改变的风格的按钮,而不必抛出一个事件。我怎样才能做到这一点?
Which would work, but what I'd really like to do is change the style of the button without having to throw an event. How can I do this?
谢谢!
推荐答案
有什么原因,这是行不通的?
Is there any reason this wouldn't work?
button.setStyle('skin', button.getStyle('upSkin'));
这篇关于如何手动触发一个按钮的Flex悬停状态?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文