Actionscript 3 两次设置currentState时出现性能问题

Actionscript 3 两次设置currentState时出现性能问题,actionscript-3,apache-flex,state,Actionscript 3,Apache Flex,State,当我使用相同的值设置组件的currentState两次时,如下所示: component.currentState = "stateName"; component.currentState = "stateName"; 它是两次应用该状态,还是第二次看到它的给定状态与当前状态相同而什么也不做?刚刚检查了UIComponent的源代码,它说它只应用与当前状态不同的状态

当我使用相同的值设置组件的currentState两次时,如下所示:

component.currentState = "stateName";
component.currentState = "stateName";

它是两次应用该状态,还是第二次看到它的给定状态与当前状态相同而什么也不做?

刚刚检查了UIComponent的源代码,它说它只应用与当前状态不同的状态