1 Reply Latest reply on Mar 21, 2008 11:40 AM by Peter deHaan

    Assign data grid field to variable?

    Handycam Level 1
      I have a datagrid populated by an XMLList.

      When a row is selected, I'd like to assign the value from one of the row's datafield to a variable.

      I know how to bind to the selection, <mx:Label text="Selected: {playlist.selectedItem.path}"/>

      "Path" is one on the data fields/XML nodes.

      However, I cannot seem to do it the same way for a variable assign:

      var myPath:String = playlist.selectedItem.path

      does not work. What am I missign here?