Drag-and-drop tree list from files/folder

Hello all. I'm new to Flex and I'm looking for some help or
for someone to point me in the right direction. I want to write a
simple AIR application to accept a multiple text files (or a folder
full of text files) when the files/folder is dragged into a tree
list. The file/folder name will be the node name. When selected,
the contents of the file will be displayed in a text area. The text
file will contain a 4 x 4 number matrix with each column separated
by a tab and each row separated by a return. (I plan on plotting
the numbers in the matrix in the future).
What I'm most confused about is how to go about
dragging-and-dropping files into a tree list and creating item
names based on the file/folder name? And does the file content need
to go into an array collection?
Maybe I'm going about this in a difficult way. If there is an
easier way, I'd appreciate it if someone could share. Thank you
all.

I have the same problema and I´m not able to find the reason.
The solution to get the event raised has been to copy configurations from wd standard appl FPM_TEST_DND_FORM and use my own Z feeder class : all  seems to work perfectly , but , if I try to do it from scratch the event  FPM_DROP_COMPLETED it´s not raised .
I´ve compared both configurations/class ( the one that I´ve done from scratch  that it doesn´t raise the event and the one that I´ve adapted copying from standard that it raises perfectly  the event) and I haven´t  seen any difference (maybe I haven´t found) .

Similar Messages

  • Drag and dropping an address from address book to the desktop, the address file does not go where my mouse is positioned.

    If I drag and drop an address from address book to the desktop, the address file does not go where my mouse is positioned. It winds up somewhere in the middle of my screen. Any way to have the address file land and stay where my mouse pointer is?

    You have to assign the favicon yourself to the desktop shortcut (right-click the shortcut: Properties) after you have dragged the link to the desktop.
    You can usually find the favicon in Tools >Page Info > Media and save the icon there.
    Otherwise use the main domain of the website and add favicon.ico (e.g. mozilla.com/favicon.ico ) to display the favicon in a tab and save that image to a folder.

  • An mp3 file on my computer will not import to itunes by either the drag-and-drop or the Add File to Library method.  Can't figure out what I'm doing wrong.  My OS is Windows 7.

    I purchased an mp3 from a private website on my laptop.  The itunes library i sync ipod to is on my desktop, so i copied the mp3 onto a flash drive and then into my desktop in the Downloads folder and Desktop folder as well as the itunes music folder, 3 places.  I opened itunes on the desktop and read the instructions for importing music that's already in my computer.  Neither the drag-and-drop or the Add File to Library method works.  I've tried both ways over and over.  Cannot figure out what the problem is.  I do note that the name of the mp3 file doesn't show the .mp3 extension, it appears as simply it's title, Eating Healthy, without any extension at all.  Could the filename be the problem, or do you have any other idea what I'm doing wrong?  My OS is Windows 7, using IE9.  Thanks.
    ADDENDUM AFTER READING ANOTHER DISCUSSION HERE:  I have now tried right clicking the song in Windows Explorer and choosing Open With, clicking itunes.  The mp3 plays in itunes but does not add to the library.

    I don't have a Recently Added playlist.  However, I discovered that the file I had named Eating Healthy was given the name You Can Enjoy Eating Healthy when it copied to iTunes.  I'm guessing iTunes pulled the full name of the piece from the internet.  Upshot--the mp3 did transfer to iTunes on all 3 tries, but I was looking in my alphabetized list under E, not Y, so I didn't see it there.  Thanks for your help. 

  • ExtJS Drag and Drop Tree Implementation

    Hello!
    I found this wonderful example of a drag and drop tree, with the ability to save the changes, but I'm not quite sure how to go about implementing it. Can someone point me in the right direction?
    Thank you,
    Tammy

    Hi Tammy
    My example uses drag and drop also, so the details are there.
    Regarding your question on how to get started:
    Really it's just a case of breaking the problem down into managable parts until you have solved all the pieces.
    Start by implementing the "AJAX form using globals" at http://apex.oracle.com/pls/otn/f?p=200801:2011
    It shows you how to pass data back to the database using AJAX with the WWV_FLOW variables, which are there for exactly that purpose.
    Make sure you also understand the response Ext is expecting, use Firebug to examine the responses in both examples.
    Once your comfortable with that, try loading a tree using an application process.
    You can create stubbed responses initially for the application process, e.g.
    htp.p(^'[{
        "text": "adapter",
        "id": "source\/adapter",
        "cls": "folder"
        "text": "dd",
        "id": "source\/dd",
        "cls": "folder"
        "text": "debug.js",
        "id": "source\/debug.js",
        "leaf": true,
        "cls": "file"
    }]^');From there, add drag and drop calls, replace your stubs with production code...
    I use application processes as a gateway, simply passing requests through to a database package.
    It's not a small task by any means, so allow plenty of time for learning and understanding.
    Regards
    Mark

  • Drag and drop just to extract file path

    I'm writing a Cocoa GUI app to facilitate working with a command-line program. The scenario is quite similar to what I see in the Apple FileMerge.app. I'd have a NSView (or a drop pocket of whichever class appropriate) into which I can drag the file icons just in order to retrieve file's path, one by one, no visualization, no checking for file types, just for assembling a list of files to eventually be passed to the data crunching program as command line arguments. I've come across CocoaDragAndDrop sample program, which does great work in displaying dragged picture tiff and pdf files. Probably 90% of the code there is beyond what I need, but the semantics are so unlike anything I've ever come across (I'm miles away from image processing). I can't even figure where to start since everything seems so interconnected. Is there a simplest case example of Drag and drop which only serves file path extraction? From the aforementioned sample code I'm struggling to figure out what is the part which is absolutely needed only to retrieve the path? Do I have to init a [NSImage canInitWIthPasteboard: ... ...] if a file is a plain text file, or a raw data file? The app doesn't need to know what the file is, since passing the absolute path as text argument cannot do any harm in this case - the number crunching command line program takes care of the content. Do I need coders? Do I need a sourceOperationMaskForDragingContext? Does Drag and Drop even cover such trivial demands?
    Thanks in advance!
    Regards, UU

    Thanks for your kind replay. Please let's stay on-topic: my question shouldn't have pointed at if "Apple works like this or like that".
    IMHO, it's quit opposite: many things are cut-and-paste compatible, yet I'm missing few basic explanations.
    The following code can be derived from the API reference:
    #import "DragTView.h"
    #import "AppDelegate.h"
    @implementation DragTView
    - (id)initWithFrame:(NSRect)frame{
        self = [super initWithFrame:frame];
        if (self) [self registerForDraggedTypes:[NSArray arrayWithObject:NSFilenamesPboardType]];
        return self;
    - (NSDragOperation)draggingEntered:(id <NSDraggingInfo>)sender{
        highlight=YES;
        [self setNeedsDisplay: YES];
        return NSDragOperationGeneric;
    - (void)draggingExited:(id <NSDraggingInfo>)sender{
        highlight=NO;
        [self setNeedsDisplay: YES];
    - (void)drawRect:(NSRect)rect
        [super drawRect:rect];
        if ( highlight ) {
            [[NSColor grayColor] set];
            [NSBezierPath setDefaultLineWidth: 5];
            [NSBezierPath strokeRect: rect];
    - (BOOL)prepareForDragOperation:(id <NSDraggingInfo>)sender {
        highlight=NO;
        [self setNeedsDisplay: YES];
        return YES;
    - (BOOL)performDragOperation:(id < NSDraggingInfo >)sender {
        NSArray *draggedFilenames = [[sender draggingPasteboard] propertyListForType:NSFilenamesPboardType];
        NSURL* fileURL;
        NSTextField* pathField = [(AppDelegate*)[[NSApplication sharedApplication] delegate] pathField];
        if (([[[draggedFilenames objectAtIndex:0] pathExtension] isEqual:@"txt"]){
            fileURL=[NSURL URLFromPasteboard: [sender draggingPasteboard]];
            [pathField setStringValue:  [fileURL path] ];
            return YES;
        } else return NO;
    - (void)concludeDragOperation:(id <NSDraggingInfo>)sender{
    @end
    It reveals the file path, yet, it boils down to fifty meaningless lines of code, since the pathField object (of class NSTextField) would itself reveal a dropped file's path without a single extra line of drag-and-drop code. What I find confusing is the following:
    How should a drag operation be set up, so a text file can be dragged to the DragTView object (declared as @interface DragView: NSImageView <NSDraggingSource, NSDraggingDestination>), which would than show the image of file's icon (without dragged file itself being an image file)? This is rather unclear in the documentation, with all due respect to Apple.
    Thanks in advance.

  • I recently attempted to save my Notes in Macmail by dragging and dropping them into the Notes folder. On my most recent sync all Notes were deleted. Is there a way to undo this?

    I recently attempted to save my Notes in Macmail by dragging and dropping them into the Notes folder. On my most recent sync all Notes were deleted. Is there a way to undo this?

    Garret,
    is your movie in your backup folder a Quicktime movie? Then probably only have the Quicktime wrapper in your backup folder, but not the referenced media in the file fork of the movie. If you see the full quality movie in iPhoto in QuickTime player, don't drag it from the browser to the Desktop, but use "File > Reveal in Finder > Original File" to show the movie in your iPhoto Library. Select the Movie when it is revealed and ctrl-click it to open it in Quicktime Player.
    Export it from Quicktime Player with "Export to" and share it to iTunes. This way it will be converted to a .mp4 movie that embeds the missing resources.
    You can drag the converted movie from iTunes to the Desktop or share it using to Media Browser to other applications.
    Regards
    Léonie

  • How do I stop a copy of backup files? Time Machine filled my extern HD, I bought a 2TB, drag and drop the old backup files and now my iMac has been stuck in "preparing copy" mode all night.

    My 235 MB external HD was full, I bought a new 2TB and dragged and dropped the old backup files to it. Now my iMac is frozen in "preparing copy" mode.  How can I 'unfreeze' it? How should I move the backup files from one external HD to the other?

    This has been answered here so may times (especially by pondini, e.g. in this thread Time Machine stuck in repeating "preparing files" cycle), so please search this forum the next time before asking such a question.

  • Is it possible to drag and drop an arrangement from another software program such as band-In -Box to garage band

    is it possible to drag and drop an arrangement from another music program like Band-ina-box into garage band

    GarageBand for iPad is a pretty closed system.
    The Song File
    You can only open GarageBand for iPad Song Files with the extension .band. Please note that those files look the same as the ones form GarageBand 11. However, they are only upwards compatible but not downward compatible. GarageBand iOS -> GarageBand OSX -> Logic.
    Audio Files
    You can import a wide variety of Audio Files into GarageBand (via iTunes File Sharing) to use in your Song. But any material from another app has to be mixed down first. Either as a single stereo mix or you mix each track separately and then import those separate files ("stems") into GarageBand. This is a typical procedure to move material to a different app,for example for mixing.
    Hope that helps
    Edgar Rothermich
    http://DingDingMusic.com
    'I may receive some form of compensation, financial or otherwise, from my recommendation or link.'

  • Drag and Drop an email from OutLook to JList.

    Hi All,
    Can anyone of you please guide me on how to implement drag and drop an email from microsoft outlook to JList.
    Thanks in advance.!
    Amit

    It might just be Microsoft not using standards? I remember having a similar situation - I had an application that could have a zip entry fron 7-zip drag-and-dropped into it (came over as plain text, or maybe an InputStream, can't remember), but when you drill into a zip file with Windows (Vista at least), and try to drag-and-drop a zip entry from Windows Explorer, Java shows no dataflavors available. I just assumed Microsoft wasn't exporting the zip entry in any standard format (such as plain text).
    Sorry, I know that wasn't very helpful, just thought I'd share a similar experience. :)

  • I would like to copy all the songs from one Ipod into another. All the songs are into my Itunes account, I tried to drag and drop the songs from the old Ipod to the new one but it doesn't work. Is there a way to do it ?

    Hello everybody,
    I would like to copy all the songs from one Ipod into another. All the songs are into my Itunes account, I tried to drag and drop the songs from the old Ipod to the new one but it doesn't work. Is there a way to do it ?
    I share one Itunes account with other people from my family and one person would like to keep the same songs on the new Ipod as the ones which were on the old one.
    Thanks in advance for your answer.
    Yan

    Hello Chris,
    Thanks for your answer. I was hoping for an easier answer. Too bad there is no drag and drop solution, it would have been much easier.
    Thanks for answering so fast.
    Bye.
    Yan

  • How to drag and drop href image from webbrowser to office using vsto c# wpf?

    I want to drag and drop href images from web browser to office using C# wpf. Is it possible to drag href images ? give me the solution

    Hi,
    Are you developing an Office Add-in application? Do you mean you hold a wpf Web Browser control in the Office Add-in project?
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • HT1386 Can I manually drag and drop a playlist from an itunes account different from my own?

    Can I manually drag and drop a playlist from an itunes account other than my own?

    Yes but then all your music will be erased and replace by the new playlist.

  • HT1535 Does iTunes 11 allow for the "dragging" and "dropping" of music from a library onto a manually managed device?

    It appears that iTunes 11 does not allow for the "dragging" and "dropping" of music from a library onto a manually managed device.. is that true? I am trying to drag a playlist onto my iPhone. I've done it many times before on previous versions of iTunes but now that the menu is up in the heading, I can't drag the playlist onto the icon for my iPhone.

    Zmaj3 wrote:
    It appears that iTunes 11 does not allow for the "dragging" and "dropping" of music from a library onto a manually managed device.. is that true?
    No.
    Sync you are not syncing, the ONLY way to get items onto a manually managed device is to drag and drop.
    However, I feel a much simpler way is to create a playlist and add/remove songs from this playlist and autosync this playlist (or multiple playlists). I use about 6 or 7 playlists
    You can still also drag & drop songs while autosycning.

  • I am using garage band for the first time.  I dragged and dropped a song from itunes into the program and I want to extend the length of the song by repeating the first 28 measures.  I can't figure it out.  Please help

    I am using garage band for the first time.  I dragged and dropped a song from itunes into the program and I want to extend the length of the song by repeating the first 28 measures.  I can't figure it out.  Please help.  I have spent several hours trying to figure it out on my own but have not been successful.  It seems like an easy task.  Can anyone help?

    dewin1or wrote:
    I want to extend the length of the song by repeating the first 28 measures.
    split the region at the 28th measure
    http://www.bulletsandbones.com/GB/GBFAQ.html#split
    (Let the page FULLY load. The link to your answer is at the top of your screen)
    then select only the first region and option-drag it to the end of the song

  • Drag and Drop of Page from Content Finder into Page Component

    Hi,
    Does anybody has a sample code for Page component which accepts the page when dragging and dropping from the content finder? Basically I am trying to create a web page with page component on it and customized the content finder to display all the pages that I needed on a separate tab, I am trying to drag and drop the pages from the content finder to the page component of the web page that I created, but it is not working for me. If someone has any sample working code please share it.
    Thanks

    Hi,
    There's no direct support for this. But you could implement
    drag and drop the way you normally would in javascript. Except
    here, on mouseUp over a div encapsulating the object or embed tag
    (the flash object), you'll need to make a call into actionscript
    from javascript indicating that a drag and drop happened.
    For more info, see
    how
    to drag and drop using javascript and
    actionscript
    and javascript communication

Maybe you are looking for

  • How do i know if my app is downloading after a retry

    I was downloading an app, a very large file and expensive one. While it was downloading my computer detected that i didnt have enough space for the app to download and asked to cancel or retry. I deleted some files and pressed retry. The icon it on m

  • Why Wont My Mac Os X Download Flash Player?

    My Version Of Mac Os X is 10.5.8 and i try to download adobe flash player but it wont work i cant do anything because i dont have adboe flash player and its really boring. Please find an answer to this thank you and bye.

  • Best Way to Copy Large Files

    In copying files to a USB memory stick, is there a particular file size limit above which simple drag and drop using the Finder does not work consistently? In general can we assume that if it appears to copy OK, then the files are in good shape? For

  • Error frm-40735 ora-01403

    I read that this is a general purpose error for Forms, but I couldn't find an answer for my situation. I have a datablock based on a view, and a command button that has a trigger for selecting values into the block where one of the blocks fields matc

  • PSE certificate is not valid

    Hi Portal experts! Since few days my NetWeaver system does not have a valid PSE certificate. I tried to delete and to create a PSE certificate, but without any success. Question: What are the technical steps to solve my problem? Thank you very much!