Hi all,
 
imagine the following scenario (isnt my case, but works):
 
User input a string and press a button. Apps change the current state to
the that string. That state doesnt exists :(
 
So, checking the UIComponent.as, the ArgumentError its throw on the
getState, not on setState. This method is probally called on the next
frame, so, its cause that i cant:
 
try
{
    this.currentState = "invalidState";
} catch(e:ArgumentError)
{
    Alert.show("Invalid state", "Error");
}
 
I may run through the states array checking for the existance of the
desire state, but, there is no other way to catch that error?
 
That probally had been asked here, but i really didnt found it. Even
googling
 
Thanks in advanced.

Reply via email to