Skip navigation
Currently Being Moderated

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

Aug 31, 2013 12:07 AM

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?


More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points