我在我的应用程序中使用了状态。问题是我已经选择了列表中的第一个项目。所以我给了这样的,
if(itemIndex == 0)
this.currentState="selected";
this works fine.The problem is when other item is selected the first item does not change its state,it remains in the selected state until its clicked. 我的代码看起来像这样,
<s:BorderContainer id="outerCont" width="275" height="100" borderVisible="false"
backgroundColor.normal="#3D3C3C" backgroundAlpha.selected="0.1"
backgroundColor.selected="{data.color}">
我的状态是这样的,
<s:states>
<s:State name="normal" />
<s:State name="hovered" />
<s:State id="selState" name="selected" />
</s:states>
提前致谢!!