View defining two states
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"> <mx:states> <mx:State name="ViewState1"> <mx:SetProperty /> <mx:SetProperty /> <mx:RemoveChild /> <mx:RemoveChild /> </mx:State> <mx:State name="ViewState2"></mx:State> </mx:states> </mx:Application>