有人能解释一下新状态在 flex 4 中是如何工作的吗?我从 flex 3 迁移到 flex 4 时,我在状态代码中遇到了错误:
<s:states>
<s:State name="login"/>
<mx:RemoveChild target="{viewStack}" />
<mx:RemoveChild target="{header}" />
<mx:RemoveChild target="{footer}" />
<mx:SetStyle target="{login}" name="verticalAlign" value="middle" />
<s:State name="menu"/>
<mx:RemoveChild target="{login}" />
<mx:AddChild relativeTo="{null}" >
<search:Drawer title="{resourceManager.getString('locale','mySearch')}"
dockSide="left"
backgroundAlpha="0.9"
backgroundColor="#ccccff">
<search:SearchContent />
</search:Drawer>
</mx:AddChild>
</s:states>
如果您需要“目标”代码,请在此处说明。