Drag n drop stuff

Hi all.
I have this weird behavior regarding drag n drop stuff.
The scenario:
MC1 is on layer1.
MC2 is on layer2.
You drag MC1 and drop it on MC2.
Guess what? MC1 still stick to the mouse. MC1 still follow
the mouse eventhough you've release the mouse. Is this normal? What
should I do be able to drop it on any MC on the stage regardless of
their layer on the timeline?
Below is the code on the timeline (it's a normal,non-fancy
code really).
Thanks in advance guys.

Don't know if this will help, but this is one of the most
often overlooked movieclip/button events: onReleaseOutside.
If you release the mouse, but it is over some other
clip/button which also has defined clip events, the original item
will not know that you have released it because it has been
"release outside." This is one of the things I
always test in any flash file I am given and often you get the
"stuck to the mouse with no way to get it
unstuck" problem.
So just define an onReleaseOutside handler that does whatever
you would like to happen in that case and you should be good as
gold.

Similar Messages

  • Open a File in a JTextPane via Drag and Drop

    Hi,
         I have a simple JTextPane in a Swing App on Windows XP. I would like to know if it is possible for me to be able to add the functionality such that I can drag a text file to the JTextPane and it would open the file inside the Pane. Is this possible? If yes then how do I implement it? (I am not insisting on the app working on non-Win XP systems � so portability is not a concern.)
         I have tried to search for the drag and drop stuff but I am confused. First, which interfaces should I implement i.e. DragGestureListener, DragSourceListener, DropTargetListener or what?
         I would be grateful for any pointers.
    Thanks a lot,
    O.O.

    1. http://java.sun.com/docs/books/tutorial/uiswing/dnd/intro.html - This link did have the information but has since been updated and no longer points to the relevant information that I have since used.
    So you where given a link with the appropriate informaton, but Sun has changed the information and you are blaming us for not helping? Unbelievable!
    Here is a link to the old tutorial:
    https://www.cs.auckland.ac.nz/references/java/java1.5/tutorial/uiswing/dnd/intro.html#importFiles
    Now tell us how that does not do exactly what you wanted?
    I really don�t know why some people waste their time here just providing you with linksBecause most people like yourself don't know how to ask a question. DnD is a complex topic. The only way to learn it is to read a tutorial and experiment. What a better way to learn than to play with a working example. You are given many working examples in the tutorial.
    You did not state wihich example you had changed. You did not state what problems you where having.
    The best you could state was "I'm confused". You where asked to clarify your problem/confusion but didn't. We are not mind readers so we couldn't provide further help.
    I agree I am wasting my time helping someone who doesn't even appreciate the effort made by the many individuals of the forum and I won't make that mistake again.

  • Drag and drop issues.  I'm not alone.

    So clearly I'm not the only one dealing with this, I've seen other topics with people running into this problem.
    All of a sudden last night I was unable to drag and drop stuff around, copy and past, run a new program and I have no Spotlight. I've restarted Finder, the whole Mac, reset the PRAM, and even rand DU and repaired the disk. Nothing. Stil can't do stuff on it, and it's starting to get on my nerves.
    Does anyone know of a solution to this? I've read many "temporary fixes" that haven't done anything for me.
    Thanks!

    Inaki wrote:
    So clearly I'm not the only one dealing with this, I've seen other topics with people running into this problem.
    All of a sudden last night I was unable to drag and drop stuff around, copy and past, run a new program and I have no Spotlight. I've restarted Finder, the whole Mac, reset the PRAM, and even rand DU and repaired the disk. Nothing. Stil can't do stuff on it, and it's starting to get on my nerves.
    When you say, "All of a sudden" what were you doing on the computer? Do you have any 3rd party software installed. Any recent installs?
    Does anyone know of a solution to this? I've read many "temporary fixes" that haven't done anything for me.
    Create a new user and see if the problem exists with the new user. If not, then you most likely have a corrupted .plist or other file.
    If the problem exists with the new user, then it's a deeper issue - more system related.
    Your topic is a bit misleading - you have multiple issues - spotlight and the inability to run a new program. Is it possible that this new program is the problem?
    Message was edited by: nerowolfe

  • Drag n Drop question

    hi. this is what i want to do:
    drag a file from a windows desktop, drop it into an applet that exists in a browser.
    the applet reads the local path and filename of the dropped object, and uses that to retrieve the file from the local system and uploads it via ftp to the server where the applet was downloaded from.
    i know how to do the basic drag and drop stuff, DropListeners and all, as well as the ftp transferring. but when i drop a Windows object into the applet in the browser and try to find out anything about it (with getTransferData()), i get exceptions thrown (InvalidDndOperationException).
    My question is: how can i get the path and filename of a Windows object dropped into an Applet existing in a browser?
    please reply to my email address if you can: [email protected] . thanks

    hi hool
    Can i ask you a question?? You seem to know a little more then me regarding Drag and drop. In my program i have actually got the basic stuuf working for drag and drop, in saying that i have added a source area to a panel and placed this at the north of my canvas , i have also created a target panel and placed it south to my canvas. SO now i can drag from the source area to my target area. What i want to do is when i hit a RUN button it goes and checks all the components in my target area and maybe carry out an action on what is there. Can this be done or am i just talking goobly gooke. Sorry i can't answer your question.
    Silla_34

  • Are there any events to script a component when dragged and dropped into the parsys area?

    are there any events to script a component when dragged and dropped into the parsys area?

    The cq:listeners node of a component's cq:EditConfig has a number of events that fire with relation to the edit mode drag'n'drop stuff. You would probably want to hook one or more of the insert ones (beforeinsert, beforechildinsert, afterinsert, afterchildinsert).

  • OK Have iTunes on my PC all files converted to MP4 for the vids. It is recognised as it goes on but the new drag and drop does not like my iPad or wont copy files over. Any ideas before I smash it against the wall and buy an android so I can play stuff on

    Why wont my iPad accept MP4 Files in my iTunes library unless I sync it. I soooooooooooooo miss drag and drop to the side.

    Have your tried using the View menu item Show Sidebar?
    This will restore the function of iTunes 11 to what you find familiar.

  • ITunes won't let me drag and drop anymore

    Last friday, I closed my Macbook and it never started again. I bought a new one. The guy at the Mac Store said, "Just plug in your iPhone, enter your pw, and everything will work like it used to." Of course, I left the store thinking, "No way is that going to happen," but I didn't stay and fight. Of course, I plugged in my iPhone, immidately my Mac started saying, "You do not have sufficient permissions." To get rid of it, I read a post that said I should select to sync and then unsync everything from the phone (which deleted everything of course, but I'm not that upset about). Anyhow, the iPhone syncs now, but the lingering issue is that my old computer let me drag and drop MP3 files directly from my Finder window to the iPhone music library in iTunes. I DID NOT HAVE TO USE THE ITUNES LIBRARY AND I DID NOT HAVE TO CREATE PLAYLISTS. (I hate people who capitolize things, but I've read in several other posts where people say, "That was never possible to drag and drop, you always had to create playlists." No, you did not. I gurantee you because I've never done it). To state it just once more, I did NOT load the songs into iTunes, then go from iTunes to the iPhone, but instead, with iTunes open, and the iPhone plugged it, I would select the mp3 in the Finder window, then drag it to the part of iTunes which allows me access to the iPhone, and the iPhone section of iTunes (not the main iTunes library on my Macbook, but the iPhone itself) would become highlighted in blue, then I would release the trackpad and the song would load onto the iPhone (but never be associated with or loaded into the iTunes library for my Macbook).
    Now when I drag the mp3 over, the iPhone section stays gray and won't let me do it.
    How can I fix this? I detest iTunes. I'd be in love with Apple completely if it weren't for iTunes, which is constantly broken and never works. I'm happy with my music stored in my own filing mechanism, with my own method of tagging them, and I don't want to conform, I don't want to "get used to it."
    Please someone tell me how to fix this! (Before it messes up my iPad as well).
    PS... Of course, in the time my computer broke and I bought the new one, Apple released yet another updated version of iTunes, which they forced me to update before I could even use it. So, I don't know if the phone didn't sync over correctly or the update didn't work.

    Oh, also want to add that the PC I'm currently using is:
    Windows Vista Home Premium Service Pack 2
    My other PC was:
    Windows 7 Ultimate
    My MacBook is:
    Max OSX 10.5.something (the last update available for it. .8 maybe? haha)
    Not sure if this stuff is important, but I thought I'd add it.

  • Drag and drop does not work in firefox 3

    Does anybody has the same issue with firefox when you add a layout to the oracle composer and you want to drag and drop some components that it just does not work...
    When i hoover over the title bar of a component i see the cross icon but the drag & drop does not work. WHen i do the same in IE8 or google chrome, it does work.
    I have this issue for both oracle composer stuff as for sites i build in webcenter spaces.
    We are working with the latest version of webcenter

    WebCenter is compatible with:
    * Firefox 2 & 3
    * Internet Exploirer 7 and 8
    * Safari 3.0
    It might be caused by a firefox extension in your browser.

  • I bought a 5th Gen Touch. I use iTunes 12 on two computers. One computer allows me to drag and drop. The other does not.The one that allows it has problems. Any idea as to why I can drag and drop on one and not the other. Both are authorized.

    I bought a 5th Gen Touch. I use iTunes 12 on my two computers. I first connected the Touch to my desktop and it allows me to drag and drop mp3 files from my old Classic, which is backed up to a directory. Unfortunately, that computer has gone down before I got a chance to fill the Touch. I have the files on another computer but when I connect the Touch to it, it doesn't allow me to drag and drop the files. I have iCloud set on both systems and I have manual management check marked. I'm not understanding why it allows drag and drop on one PC and not the other when they are both set the same way. My question? What do I need to do to be able to drag and drop in iTunes 12? I didn't do anything special on the computer that allows it so I am at a loss.
    Thank you!

    Oh, also want to add that the PC I'm currently using is:
    Windows Vista Home Premium Service Pack 2
    My other PC was:
    Windows 7 Ultimate
    My MacBook is:
    Max OSX 10.5.something (the last update available for it. .8 maybe? haha)
    Not sure if this stuff is important, but I thought I'd add it.

  • Why does the drag and drop context menu always popup when dragging files between windows explorer instances ?

    I have fusion 7.1.1 on an iMac 27 inch retina. 32GB ram of which 6GB assigned to Fusion and 2 cores. Windows 7 Home Premium installed. Mostly working fine but a few funnies. First and foremost: Whenever I drag and drop between instances of windows explorer, I get the little pop-up context menu offering me Copy Here / Move Here etc.  etc. I have never known Windows to ask me what I want to do when I drag stuff - why is this happening ? I have scoured the net for info on this and found nothing. Please note that this is NOT associated with the Start Menu (For which I found a zillion solutions to whatever that problem is). Also, It is NOT to do with stopping drag & drop and Context menus: yes, I know how to do that but that is NOT what I'm asking to get rid of. This may not be related but I have also had to set my Internet Properties / Explorer settings / Launching-applications-and-unsafe-files to "Enable" to prevent every shortcut I create causing a "Do you want to run this ... ?" message every time I click on them. Doing this has caused WIndows 7 to turn into a finger-wagging safety-nanny glaring at me over its demi-lune spectacles.

    Ok ... fixed
    Here is the way http://forums.creativecow.net/thread/3/944828
    In your sequence, on the left most column you should see a V1 (left of the Lock Track button). Click that to make sure its highlighted, it allows you to drop video to the sequence.

  • ITunes 11.1 and iOS 7.0.3 won't allow me to drag-and-drop videos onto my iPad?

    I finally updated my iPad 2 (16 GB; Wi-Fi) with the new iOS 7 update (7.0.3), and now it won't let me drag-and-drop items from my iTunes library anymore. It starts to, it seems.  iTunes says "Preparing to sync" and then that just disappears, and nothing else happens.
    Just the other night, I drag-and-dropped some songs onto my iPad (since my iPhone wasn't allowing me to, so I added them to my iPad instead; I'm getting a new iPod touch soon anyways, so this is only temporary), and it worked just fine.  This was before I updated my iOS 7 (iTunes was already at 11.1).
    I've restarted iTunes...many times...
    I've restarted my iPad...many, many times...
    I've restarted the PC...again...
    Checked my storage space; I have plenty for these six videos I want to add on here...
    I have had this iPad set on "manually manage" since I bought it.  It has never known any different.  I've manually synced movies from my old MacBook (backlight dead, and it's not worth the money I'd have to pay to replace it, since this is the second-to-last MacBook Apple made, so it isn't worth much anymore; and this MacBook still has Mac OSX 10.5, so iTunes 11 won't even work with it, so I haven't synced anything from it in MONTHS...), and to my last PC laptop (charging port is broken, so it won't charge even though it works fine when the battery is full; unfortunately, I haven't gotten around to ordering the new part yet).  I've only added three songs from this "new PC" that I'm borrowing.  To my knowledge, it doesn't matter how many different libraries you "sync" to a "manually managed" device, right?  Besides, I just synced music from this third library last week!! 
    What I just don't understand is why it let me the other day, and now it won't.
    And before I updated tonight, my PC didn't even recognize my iPad.  So I pretty much HAD to install that iOS 7 update that had been in my Settings since it came out.
    What is going on? I'm kind of sick of this...the only option it seems is to just completely sync to this one computer, but I'll lose pretty much everything except the few songs I put on here, and my videos.  I have pictures and apps and notes/documents that I DO NOT want to lose.
    Any suggestions?

    Oh, also want to add that the PC I'm currently using is:
    Windows Vista Home Premium Service Pack 2
    My other PC was:
    Windows 7 Ultimate
    My MacBook is:
    Max OSX 10.5.something (the last update available for it. .8 maybe? haha)
    Not sure if this stuff is important, but I thought I'd add it.

  • Drag and drop STILL sketchy in Struts Page Flow

    Struts Page Flow has been a major problem area in JDev since it was introduced, and I am still having some useability issues with it.
    I CANNOT drag an application module method out, onto a data action; if the data action isn't one of the newest actions on the page. If the action has more than one target, (multiple "forwards") or just isn't one of the "newest" actions on the page, the GUI shows me dragging a the method from an app mod out onto the action, but no work is done once I drop it. I must delete the data action, and re-create it. This, in the mean time, will overwrite any data action class I had defined originally.
    This needs to be fixed very soon, as it has been in every build of 10g that I have dealt with.

    Ok. To reproduce the bad drag and drop behavior:
    Create a Misc Data page, name it "Home"
    Drag a data page out, name it "A", and put stuff on it. (Doesn't need to be complex).
    Drag an action out, name it "B".
    Drag another action out, name it "C"
    Connect a forward from "A" to "B", connect a forward from "B" to "C". Connect a forward from "C" to "Home".
    Connect a "fail" forward back, from "B" to "A".
    Try to drag a method off of an applicaiton module to Action "B". It should not work.

  • Can't Drag and Drop movies onto iPod

    I purchased a movie from the iTunes Store, which I downloaded to my Mac. I tried drag and drop the movie onto my iPod Touch (4G), and while it showed the little 'plus' icon over my iPod, it didn't transfer the movie. I made sure I had enough room on the iPod, I tried quitting iTunes and trying again, but nothing has worked. Of course, I can download the entire movie again from the iTunes store, but that's a lengthy process. In the old days I could drag pretty much anything from the Mac to the iPod. What gives? Thanks for any help.

    First of all, if you try Sync , you will get exactly the same message: *"the movie <name> has not been transferred to the iPod because it cannot be played on this iPod."* The message means exactly what it says. You may believe that the iPod should play them, particularly as Quicktime does, but the fact remains - it won't, which is why iTunes will not transfer them.
    I don't manually manage, I only use Sync and my iTunes is littered with .mov files that will not transfer to the iPod because I get that message. I wish I had cleaned up iTunes as I went along because now it's littered with stuff that doesn't work (except in iTunes or in Quicktime).
    As for .mp4 files, I cannot find one (at the moment) in my iTunes that has not transferred to the iPod - do you mean .m4v? I definitely have some .m4v files which will transfer and others that don't. I assume it has something to do with the way the audio is encoded into the video.

  • Drag and Drop file from a jsp to local machine

    Hello All,
    We have got a user requirement where, currently we have an attachment section in our JSP, where users are provided with the file download links,
    as the user clicks those links the file download pop appears.
    But now they ask for a drag and drop functionality, so that the link icon which they see on the JSP, if they drag it to there local machine, the file is downloaded
    to the machine. Am not sure if it can be done from a web page. Any ideas if at all this is feasible. Or any direction where i can look through.
    Thanks,

    duskandawn wrote:
    But the other way around of dragging file which is on server, to the local machine...even if i have applet.. not sure how will that work.Neither am I. Just check the documentation / forums associated with the UI framework in question. This forum is for JSP/JSTL only. I can only tell how to embed an applet or webstart app in JSP, but nothing more than that.
    Any ideas around Activex stuff if any ?Terribly bad idea. It's a MS proprietary technology and it would work in only one certain webbrowser developed by the same company, so you would exclude about 40% of the world wide web population from using the functionality. Just use the standard technologies.

  • How do I create a text style in CC libraries? Every time I drag and drop text into library form Photoshop or illustrator it turns it into a graphic.

    How do I create a text style in CC libraries? Every time I drag and drop text into library form Photoshop or illustrator it turns it into a graphic.
    If I select the text layer and click the text style button in the library it just creates a new text style for Myriad Pro 12pt - I'm not using that anywhere in my document.
    Can anyone help? Seems like a bug to me as I'm trying what the video tutorials are saying.
    Thanks

    I realize AI is an illustration program.
    Do you realize it is an object-based vector-based program? Do you know the difference between raster-based and vector-based content?
    My question seems to be all over the forum but no one has been able to answer other than exporting to these file formats, which make text look awful and of no use....
    And yet everyone else in the world makes proper web images every day using a plethora of programs, including these...go figure.
    Am I missing something?
    Yep. Pretty much.
    Hello Adobe! People use transparency on website logos.
    Hello, cocteau! What you're calling "transparency" is inherent to object-based vector artwork. But web browsers don't support object-based vector artwork, except via file formats like Flash and SVG, or by viewing as a PDF in a plug-in version of Reader. Raster imaging in general only supports "transparency" by either indexing a specific color (i.e.; "don't display this color", as in GIF) or including an alpha channel (i.e.; "blend all the pixels with existing pixels, based on values from this extra channel", as in PNG). It's all in the raster file format you use, cocteau; it has little-to-nothing to do specifically with Adobe software. Such things are among the most basic matters understood by someone doing web design.
    When I export an eps from .ai file, and open the eps in photoshop,...I save as a gif for the web, it goes back to the original problem...creates jagged text. I"m giving up on this garbage...Thanks a lot adobe! Lower the price of this software if this is all that can be done.
    Once it leaves Photoshop (or Illustrator, or whatever) as a non-proprietary raster image format, it's all about what the format can do re "transparency". You can do this stuff with most any graphics program. You should read about basic web design and the differences between raster and vector content, rather than rant.
    JET

Maybe you are looking for