did you try
1 person found this helpful
Try to use the following show the user a Alert box as shown below and after he clicks the OK button chnage the state.
Alert.show("Some Description.","SOME TITLE :",Alert.OK,null,changeState);
private function changeState(event:CloseEvent):void
yourComp.currentState = "addText";
Please let me know if you have any doubts.
If this post answers your question or helps, please kindly mark it as such.
I have a button on main page like
<mx:Button x="18" y="239" height="29" width="137" fillAlphas="[0.0, 0.0, 0.0, 0.0]" fontFamily="Times New Roman" alpha="0.0"
useHandCursor="true" buttonMode="true" click="addText();" toolTip="" id="bttAddText"/>
When i click this button it will open a popup window, on that window i can write text. When I click the OK button on that window, the window willbe closed and the word will be visible on main (base state) editor part.
I want to redirect the control on the main page as like the above, but not in the base state, on another state called addText. I put all the edit tools for text on that state but it is not redirect to the addText state.
I don't know how to use current state in popup window.