1 Reply Latest reply on Aug 31, 2013 1:35 PM by pao1011

    How to send data from a datagrid when you click a row to a label in other state.


      I mean the  Datagrid in state1 and the label in state2

      I try with this code:


      protected function listDg_gridClickHandler(event:GridEvent):void


                      if (slistDg.selectedIndex == 0){

                          lblid.text = "My Text";

                          currentState = "State2";




      if the label is on the main State it display the text, but if I use the label in the state2 it give me an error:


      TypeError: Error #1009: Cannot access a property or method of a null object reference.


      any Help?