1 Reply Latest reply on Jun 30, 2008 8:46 AM by nnmmooppqq

    List to list Drag/drop; stop wrong answer

    nnmmooppqq
      I am using the list to list drag/drop for an e-learning exercise. I populate the first list with xml: two values: text and correct. If the text is "correct", I want the user to be able to drag the text from the first list to the second and drop it in place. If the text is "incorrect, I want the user to be able to drag the text from the first list to the second but on the drop event, the text returns to the first list.

      I can intercept the drop event and prevent it:

      public function dragExit(event:DragEvent):void {
      event.preventDefault()
      }

      But I don't know how to access the data associated with the text in the first list to get at the value of "correct".

      I'm attaching some of my code.