由网友(男生撩人 撩妹专用的昵称)分享简介:我需要触发的Flex键悬停状态编程,使其看起来像用户盘旋在它。有一个关于手动指派事件柔性页:I need to trigger the hover state of a Flex button programatically, so that it looks like the user is hovering ov...
我需要触发的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'));
相关推荐
最新文章