views:

68

answers:

1

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/flex/3/html/help.html?content=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?

Thanks!

+2  A: 

Is there any reason this wouldn't work?

button.setStyle('skin', button.getStyle('upSkin'));
www.Flextras.com
No there is not. :)
Whit