Air drag and drop

I've found various info regarding dragging and dropping into air applications. But what about dragging files out?
For example if i made a simple file browser, could i drag files into other programs, e.g illustrator?

Nevermind, you can't use DragManager at all in AIR it seems if you leave a window.  You have to directly use the NativeDragManager.
Strange because it seems like the DragManager singleton manages that for you -- but it doesn't.

Similar Messages

  • [svn] 3336: Fix an AIR drag and drop problem.

    Revision: 3336
    Author: [email protected]
    Date: 2008-09-24 12:24:27 -0700 (Wed, 24 Sep 2008)
    Log Message:
    Fix an AIR drag and drop problem.
    QE: YES
    Doc:
    Checkintests: Yes
    Reviewer: pfarland
    Bugs: SDK-17006
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-17006
    Modified Paths:
    flex/sdk/branches/3.0.x/frameworks/projects/airframework/src/mx/managers/NativeDragManage rImpl.as

    Update 2, if it can help someone:
    Finally I don't manage the drag and drop by myself using
    DragManager.doDrag(...). Why? Because doing so if the user clicks
    on the scrollbars, on the datagrid header or on an empty row, it
    triggers the drag start and that is ugly. By letting Flex managing
    the drag and drop process, this doesn't append. BUT I was unable to
    use a custom proxy image then. Until I found this article:
    http://www.dgrigg.com/post.cfm/11/03/2006/DataGrid-Drag-Image
    The trick is:
    1) save the mouseX and mouseY using the mousedown event.
    2) override dragImage(), as the article says, to create your
    custom proxy, attaching to it a FlexEvent.UPDATE_COMPLETE event,
    saving it to a class variable and returning it.
    3) When you receive the FlexEvent.UPDATE_COMPLETE event, you
    update the proxy position (that is saved in a class variable) using
    the saved mouseX and mouseY and you remove the listener to the
    event:
    When you drop the proxy, you access the dragged items in :
    event.dragSource.dataForFormat("items")
    Hope this helps, I spent lot of time trying to resolve this
    issue! Now it works perfectly! :-)

  • AIR Drag and Drop between Windows

    I can’t seem to get a simple use case to work:
    I have an AIR app that has two <mx:Window> built as separate MXML components, one is called “DragSourceWindow” the other “DragTargetWindow”.  Inside the “DragSourceWindow” is a canvas that can be dragged out of the window and dropped into the “DragTargetWindow”.
    Code:
    “Main AIR App”: http://pastie.caboo.se/private/wxcsvvxglm7aabf3xqta
    “DragTargetWindow”: http://pastie.caboo.se/private/ysgv3kpr6suiakutnvt4g
    “DragSourceWindow”: http://pastie.caboo.se/private/yybaslwsfz12znygyjvva
    SVN Repo: http://zclguialvgrid.googlecode.com/svn/trunk/examples/DragManagerIssue/
    Inside each <mx:Window> are some trace messages to see what is going on:
       1. When a DragManager.isDragging is true
       2. When you drag into a drop target
       3. When you drop an item into a drop target
    However, once you drop the canvas into a window and mouseover it again the DragManager still thinks a drag is active.
    I am using the release versions of FB and AIR.
    What am I doing wrong?

    Nevermind, you can't use DragManager at all in AIR it seems if you leave a window.  You have to directly use the NativeDragManager.
    Strange because it seems like the DragManager singleton manages that for you -- but it doesn't.

  • Please Help! Drag and drop does not work in Adobe AIR 3.1 (FlashBuilder 4.6)

    I am working on a PC is made of air and flashbuilder 4.6.
    Drag and drop application does not work in Flash Builder 4.6.
    However, the same source will work with Flash Builder 4.5.
    Please help me.
    <?xml version="1.0" encoding="utf-8"?>
    <s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
                                  xmlns:s="library://ns.adobe.com/flex/spark"
                                  xmlns:mx="library://ns.adobe.com/flex/mx"
                                  backgroundColor="#323232" width="100%" height="100%"
                                  initialize="init(event)"
                                  nativeDragEnter="onDragEnter(event)"
                                  nativeDragDrop="onDragDrop(event)">
              <fx:Script>
              <![CDATA[
                        import mx.events.FlexEvent;
                        protected function init(event:FlexEvent):void
                                  addEventListener(NativeDragEvent.NATIVE_DRAG_ENTER, onDragEnter);
                                  addEventListener(NativeDragEvent.NATIVE_DRAG_DROP, onDragDrop);
                        private function onDragEnter(event:NativeDragEvent):void
                                  if (event.clipboard.hasFormat(ClipboardFormats.FILE_LIST_FORMAT))
                                            NativeDragManager.acceptDragDrop(this);
                        private function onDragDrop(event:NativeDragEvent):void
                                  var arr:Array;
                                  arr = Array(event.clipboard.getData(ClipboardFormats.FILE_LIST_FORMAT));
                                  startImage.source = (arr[0] as File).url;
                ]]>
              </fx:Script>
              <s:layout>
                        <s:VerticalLayout/>
              </s:layout>
              <s:BorderContainer id="bc" borderStyle="solid" width="200" height="80%"/>
              <s:Image id="startImage" width="100%" height="100%"
                                             horizontalAlign="center" verticalAlign="middle"/>
      </s:WindowedApplication>

    Thank you answers, but it was not the answer I wanted.
    [Problem]
    * Flash Builder 4.5.1(updater) or Flash Builder 4.6
    - If you have installed on pc, does not work adobe air drag and drop
    [Solution]
    1. Reinstalling the Windows 7 (32bit).
    2. Install Flash Builder 4.5.
    3. Flash Builder 4.5.1 updater and Flash Builder 4.6 does not install.
       (Instead of using Flex SDK 4.6 is set up)
    In addition, Windows7 64bit environment does not work drag and drop.
    Is there another solution?

  • Drag and drop file into Outlook from AIR application

    I am hoping to see if this would be possible with the Adobe AIR API. We currently have a desktop AIR application that clients install in order to facilitate certain operations triggered via a web application (such as opening files directly from the web).
    One of the actions we are requested to support is the ability to drag and drop files from our web application directly into Outlook and have the file added as an attachment. I saw the documentation at Adobe Flash Platform * Dropping file promises and was wondering if this might be a possibility, or if there was some other method of performing this.
    We are trying to get around the fact that users now have to download a document to their desktop before being able to attach in Outlook.
    Thanks for any assistance.

    You just aren't calling the right NativeDragManager functions. See http://help.adobe.com/en_US/as3/dev/WS5b3ccc516d4fbf351e63e3d118666ade46-7d83.html

  • Drag and Drop same effects in AIR ?

    I would like to have the same effects in AIR for the sample in below link:
    http://saturnboy.com/2010/12/drag-and-drop-revisited/
    Any workaround ?

    I found, use <s:WindowedApplication  useNativeDragManager="false"/>

  • Air mobile best way to implement drag and drop

    Hi all,
    I'm developing an application which allows people to drag and drop certain panels.
    But the dragmanager isn't optimized for the air mobile platform.
    What is the best way to implement drag and drop at the moment?
    Write it all yourself or are their some utility classes that can help?

    Hi all,
    I'm developing an application which allows people to drag and drop certain panels.
    But the dragmanager isn't optimized for the air mobile platform.
    What is the best way to implement drag and drop at the moment?
    Write it all yourself or are their some utility classes that can help?

  • Air 2.7 Drag and Drop

    Hi I've had this posted under the "problems and bugs" section for a while, but nobody has answered as yet. Maybe its better posted here.
    I have an HTML/Javascript application that provides HTML5 based drag and drop for files from the desktop. This works perfectly in the browser and also tried it using Appcelerator Titanium and it also works.
    However if I package the app using Air the drag and drop feature does not work!
    Does Air support this?
    From what I've read Air 2.7 should be much more HTML5 compliant.
    Seems that I might need to disable AIR's default D&D behaviour?
    Best Regards,
    Carl

    This happened to me too on various occasions, since v1.5.
    Only known solution for me is backing up and deleting the \SQL Developer\systemXXX directory under the (hidden) Application Data of your Windows user profile, to revert to factory defaults. You can try to migrate settings from the backed up folder when being asked to (on first start).
    Hope that helps,
    K.

  • AIR JavaScript - Drag and drop to OS

    I searched here for an example of how to drag-and-drop from
    the AIR application to the OS
    with JavaScript, not Flex or Flash. I only need to know
    where the element has been dropped in order to start a download.
    I only found an example for Flex. I read that you have to use
    the clipboard but I didn't understand how to use it.
    Does anyone have a simple example of that ?
    If a tech from Adobe reads that, you should add this to your
    documentation. ;)
    Thanks.

    Sounds you are looking for this documentation:
    http://help.adobe.com/en_US/AIR/1.1/devappshtml/WS5b3ccc516d4fbf351e63e3d118666ade46-7e8a. html

  • Problem with drag and drop on Mac

    Hi, when I run my AIR application on Windows, I'm able to do
    the drag and drop.
    But when I run the application on Mac, it gave me an
    allocation error: unable to allocate region of size <random
    number> after I drag and drop thrice.
    Anybody knows what's the reason?

    Pages does not support the Apple font used for color emoji, so that behavior is normal.
    With what app are you reading the yahoo mail?  There is really no guarantee than any other email service will show the special Apple font involved.
    You should have no problem putting emoji directly into Mail or Text edit via drag drop from the Character Viewer as shown below.
    You should also be able to upload graphics here easily by clicking on the camera icon.  My email is tom at bluesky dot org.

  • I can't Drag and drop anything in iMovie11

    My problem is that i cannot drag and drop anything in iMovie 11. Therefore i can't add transitions or anything like that. Please Help.

    If third-party software called "Air Display" or "AirParrot" is installed, remove it according to the developer's instructions, then restart the computer. Back up all data before making any changes.

  • Can't drag and drop attachments into mail fullscreen

    Have a weird issue.  In lion I could drag and drog into a new mail message by dragging the attachment to the hot corner then to the fullscreen mail app then onto the new mail message.
    Now for some reason in Mt. Lion it will no longer do this.
    I can do it when mail is not in full screen mode or if I create a new mail message in another desktop.
    Any suggestions?
    And no I do not have air display on this computer (did do a search before posting)
    Thanks!

    When this happens can you drag and drop regular files and icons etc?
    I did a clean install, setup several user accounts last night. Dragging and dropping was working in my main user account last night. This morning (computer on all night) I could not drag and drop anything in that particular user account including mail attachements. Other accounts worked fine. Thought it was a permissions issue but they were fine.
    Ended up trashing the user account and resetting it up and everything back to normal.

  • Can't drag and drop on desktop and I've tried all suggestions from previous threads

    Yesterday I found that I can't drag and drop any files on my desktop. I get the white circle with a line through it when I try to drag anything. I can drag off of my desktop to my HD and to the trash but I can't drag anything back.
    I've read all of the previous threads about it and have tried all of the poetntail fixes including:
    Creating a new user account and switching back and forth
    Sleep / Wake
    Relaunching Finder
    Checking the Dragging option in Universal Access
    Checking all of my settings in prefrences
    (I don't have Air Display, Airparrot or any of the other listed problematic 3rd party programs)
    I even reinstalled Lion and the problem still exists
    Anybody have any other pointers, or should I head into the Genius Bar?

    Repairing the permissions of a home folder in Lion is a complicated procedure. I don’t know of a simpler one that always works.
    Back up all data now. Before proceeding, you must be sure you can restore your system to its present state
    Launch the Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the page that opens.
    Drag or copy — do not type — the following line into the Terminal window, then press return:
    chmod -R -N ~
    The command will take a noticeable amount of time to run. When a new line ending in a dollar sign ($) appears below what you entered, it’s done. You may see a few error messages about an “invalid argument” while the command is running. You can ignore those. If you get an error message with the words “Permission denied,” enter this:
    sudo !!
    You'll be prompted for your login password, which won't be displayed when you type it. You may get a one-time warning not to screw up.
    Next, boot into Recovery by holding down the key combination command-R at startup. Release the keys when you see a gray screen with a spinning dial.
    When the Recovery screen appears, select Utilities ▹ Terminal from the menu bar.
    In the Terminal window, enter “resetpassword” (without the quotes) and press return. A Reset Password window opens. You’re not going to reset the password.
    Select your boot volume if not already selected.
    Select your username from the menu labeled Select the user account if not already selected.
    Under Reset Home Directory Permissions and ACLs, click the Reset button.
    Select  ▹ Restart from the menu bar.

  • How to drag and drop files in Time Machine Capsule?

    Hi, all
    I have recently bought a Time Machine 2 TB. I have backed up my MacBook Air over the Time Machine. I was trying to copy or drag and drop files in the time capsule, but it wont allow me. It Neither does allow me to create any new folders in the Airport Time Machine. If i try to drag and drop files in it, it says, click to Authenticate, however, there is no place or tab to authenticate. I am the administrator.
    Please advise.
    Thanks

    It sounds like you are trying to copy / paste files to the Time Capsule Finder icon, when you should be copying / pasting to the drive on the Time Capsule, which is named "Data" unless you have changed it.
    Open any Finder window and look for the Time Capsule icon under the Shared heading on the left side of the window
    Click on the Time Capsule, which will display a folder to the right named Data, unless you have changed the name of the drive
    Double-cllick on Data to mount the drive on the desktop
    You can drag / drop or copy / paste files onto the drive icon, or open the drive and drag files into the open window.
    The first time that you do this, you may be asked for the Time Capsule device or disk password.

  • ITunes won't allow me to drag and drop songs into playlists

    Running OS X 10.6.8 and iTunes 10.4 (80).
    I cannot drag and drop songs within iTunes to create playlists or move songswithin playlists.
    Here's what I've already tried:
    -Reset iTunes Store cahce
    -Log out & in of iTunes Store
    -Quit & Restart itunes
    -Rebuilt iTunes library (by moving iTunes Library.xml file and getting rid of .itl file)
    -Checked info on iTunes folders so that permissions are both read & write
    -Restart computer
    -dug through a discussion of this problem on MacRumors and none of those solutions worked.
    Getting frustrated and hate that I have to dig around in discussions and wait for the community to figure this out instead of Apple answering and solving the problem when their software doesn't work.
    Has anyone figured out how to fix this? Aaaarrgh!

    No, I haven't had any solution to this problem. None of the myriad of possible solutions work. Doesn't someone from Apple monitor these boards? I've given up in getting it fixed and am seriously ****** at the lack of response on Apple's part without me paying for an answer. This is a ridiculous way to support software, where I have to troll around a discussion board hoping someone stumbled upon a solution and will actually reply to this thread.
    Considering the amount of Apple products that I own, you'd think I could get a freakin' response. Here's are the amount of apple products in my house, all bought within the past 3 years-
    Mac Pro Quad Core
    15" MacBook Pro
    13" Macbook Air
    3 Mac Minis
    Three iPad's
    2 iPhone 4's
    2 iPod Touch's
    But because it's on my Mac Pro, which is 1 1/2 years old, I can't get an answer to this! ***.

Maybe you are looking for

  • Triggering events in a sub-VI

    I am trying to incorporate a subVI with event handling into a main VI.  Changing values on the main front panel does not elicit changes in the values of the controls in the subVI to which the main controls are wired.  I have attached a simple example

  • How do I update PSE 12 and Premiere Elements 12 for ACR 8.5?

    I tried posting this earlier, got no responses. Recap as follows: using an iMac with OSX 10.9.4 From PSE12, used the "updates" pull-down menu, Adobe Application Manager (AAM) starts and indicates that there is an update available for both PSE and Pre

  • SavitchIn

    Hi, I am trying to figure out how to utilize the class SavitchIn.java. I have written a very basic program in emacs 21.1.1 running in a terminal on OS X 10.2.3. The program begins with the import statement which reads: import SavitchIn.*; I have trie

  • Lightroom 3 installation

    I have tried 3 times to install this thing and everytime i click on the icon it pops up a thing that says its not working and windows is closing it down! Im loosing my patience! Please tell me what Im doing wrong!

  • Converting Mpeg to mp3 only

    Seems simple.. but arrgh! I have videao clips that I want to convert to cd playable audio files to distribute to band members to listen to for practice purposes... any ideas? Thanks