1 Reply Latest reply on Sep 7, 2008 9:23 AM by Admiral_Brodnack

    How to Drag&Drop into a list component ?


      I just wanted to know, if there is an opportunity to drag&drop files into a list component? I am using flash CS3...
      For example drag&drop Song files to list component..

      Does somebody know that?
        • 1. Re: How to Drag&Drop into a list component ?
          Admiral_Brodnack Level 1
          You would need to set up event listeners for nativeDragEnter, nativeDragDrop and nativeDragOver events on the list object.

          When a drag over or enter event occurs, you call the acceptDrop method of the NativeDragManager class (I think that's the right method name). This tells the system that the list object can take the drop.

          Then if/when the drop event occurs, you get the file list from the event object. You can then loop through the list of drop files and add each file to the list.