Can someone explain how the new states work in flex 4 im migrating from flex 3 to flex 4 and i got an error in the states code:
<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>
If u need the "target" code just tell here.