Use data binding to specify information to the value property
<?xml version="1.0"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"> <mx:Script> [Bindable] public var registerValue:String="Register"; </mx:Script> <mx:states> <mx:State name="Register"> <mx:SetProperty target="{loginPanel}" name="title" value="{registerValue}" /> <mx:SetProperty target="{loginButton}" name="label" value="{registerValue}" /> </mx:State> </mx:states> <mx:Panel id="loginPanel" title="Login"> <mx:Form id="loginForm"> <mx:Button label="Login" id="loginButton" /> </mx:Form> <mx:ControlBar width="100%"> <mx:Button label="Change State" click="currentState = currentState=='Register' ? '':'Register';" /> </mx:ControlBar> </mx:Panel> </mx:Application>