Hi. The very simple code below produce an error. It happens
when you try to change state from base state to state 1 in the
procedure which is started from the datagrid change event (when you
click on a row in the datagrid).
I think the problem is that the datagrid isn't defined in
state 1 which means that it is removed at state change. But you
can't apperantly remove the datagrid while you are in a middle of
an change event and that's probably why you get the error. It all
works fine if I don't remove the datagrid from state 1.
can anyone help with a solution because in my opinion it is
very convenient and a common method to switch to another
form/display when a user clicks on a row in a datagrid. Isn't it
possible in flex to change state somehow when the user clicks on a
Ok perhaps there is no solution on this problem, flex bug or
what you can say. Instead i will use an amateur and non-good
solution and manually set the controls to visible/invisible. I
think this issue is a big limitation of flex.