chchrist
chchrist

Reputation: 19832

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

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

Thanks in advance

Upvotes: 1

Views: 1085

Answers (1)

chchrist
chchrist

Reputation: 19832

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); }

Upvotes: 4

Related Questions