0 Replies Latest reply on May 26, 2011 8:57 PM by cymbals1

    Flex Test Drive: Build an application in an hour

    cymbals1

      On the link http://www.adobe.com/devnet/flex/testdrive/articles/1_build_a_flex_app4.html#tutorial

      it says to add a selectionChange to the code for the employee datagrid, but the code hinting for selectionChange doesn't show it on the list. So, I copied and pasted the code in.

       

       

      selectionChange="empDg_selectionChangeHandler(event)"

       

      Then it is supposed to create this function. I copied the code, since code hinting does not list selectionChange(??):

      protected function empDg_selectionChangeHandler(event:GridSelectionEvent):void          {             currentState="EmployeeDetails";                   }

       

      I am getting an error on that function:

      Multiple markers at this line:

      -1046: Type was not found or was not a compile-time constant: GridSelectionEvent.

      -Type was not found or was not a compile-time constant: GridSelectionEvent

       

      Help!

      I really would like to finish this tutorial, but maybe there are some changes in it?

      I am using Flash Builder 4.5 for PHP Premium. Thanks!