Drag and Drop HELP!

OK - Here's my problem. Just moving from AS2 to AS3 and
trying to create a drag and drop template. I need to re-use a
single drag selection multiple times, to multiple targets and then
graded. For example, say I was building a car by dragging parts
over to a car frame. I need to be able to drag a copy of a tire to
the car frame 4 times in any random order. Drag 2 doors in any
order, or drag one item like a hood... etc, then grade to make sure
all are in the right place.
I have succedded in dragging a specific Drag item to a
specific Target and give feedback as it is dropped (either "wrong",
"correct" or "Good Job, Completed"), but having a bear of a time
trying to figure out how to use one Drag item for multiple Targets.
Anybody have a sample template FLA of the same concept that I
can build from?
Many, Many, Thanks!

What I am trying to do is to be able to use one of each of
the images on the left multiple times, and put them in the correct
position on the diagram in any order and then checked after student
drops the item on a target. (sample sent to email)
I have 1 for 1 working (working targets have green
highlight), but can’t figure out how for instance, drag 2
barrels in any order, 6 red squares over in any order and 2 orange
circles over in any random order. I am stuck on 1 drag item for one
specific target only.
I would like the selections to remain to the left and copies
of them created and dragged to the targets. (currently they are
removed from the left when dragged)

Similar Messages

  • Drag and Drop - Help Plz!

    I am doing a project that involves Drag and Drop with JLabels.
    What i want to do is:
    When the draggable is dropped onto the droppable JLabel, I want to update the position of the draggable. So far, when i try to update the position of the dragged JLabel, i seem to update the Droppable JLabel's position. Is there a way to reference both draggable and droppable JLabels inside the drag method?
    here is the part of my code that updates the wrong position:
    /* from class CardImage extends JLabel implements (Drag and Drop listeners) */
    public void drop (DropTargetDropEvent event) {
    DropTarget targ = (DropTarget)(event.getSource());
    Component source = (JComponent)(targ.getComponent());
              if ((event.getDropAction() & DnDConstants.ACTION_COPY_OR_MOVE) != 0)
                   event.acceptDrop(event.getDropAction());
                   event.getDropTargetContext().dropComplete(true);
                   double x = event.getLocation().getX(); // this bit updates the position
                   double y = event.getLocation().getY()+20; // slightly below the drop position but still on top of it
                   this.setLocation((int)x,(int)y); // "this" refers to a JLabel which uses an ImageIcon
                   this.setVisible(true);
              else
                   event.rejectDrop();
    }

    hi friends,
    please help me , i m trying to drag and drop a jlabel inside a panel. i m trying to do it using MouseListener. but problem is that i m not getting axact position of mouse releasing. JLabel is getting set randomly at its own position.(i m using JDk 1.3)
    please help me, i have already invested a lot of time in this.
    thanx in advance.

  • Drag and drop help (urgent)

    I need to write a program where I can drag and drop icons between and within a split pane. Any suggestion of what package I should look into? thanks

    Java provides two separate packages for drag and drop. java.awt.dnd and java.awt.datatransfer. These packages contain interfaces and classes for drag and drop. So pls go thru these classes.

  • After sorting photos into albums, the albums disappeared on me. I dragged and dropped the photos and went back to check that they were in place before exiting the program. When I went back, the folder was there but no albums. Help!

    Working on an IMac - with IPhoto v.9.6 
    This is my first experience with IPhoto... trying to move files from a PC over to a Mac.
    I don't have a ton of photos but I created about 6 albums - standard albums - and dragged and dropped individual photos into each of the albums. I named each of the albums as well so I would know what was in each. After i was finished, I created a folder called 2014 and moved each of the albums into that folder. Before moving ANY of the albums, I opened each of them up to make sure that all the photos I wanted in each were indeed there - and since there were some errors on my part, I deleted any duplicates first. SO, I KNOW the photos were actually in each of the albums BEFORE i moved them into the 2014 folder.
    My intention was to then delete the photo files in my document file but once I got there I thought I would go back and double check the IPhoto file just to make sure... and the pictures were NOT in the albums where I had placed them... is there a need to save this before you move on and if so, to where and how? I was under the impression that once files were moved to albums, they remain there.
    The photos are still in the photo library but unsorted now again... I cannot even open the 2014 folder at this point.
    Thanks for any help!!

    Was back on IPhoto this morning. The folder did not open at all so I deleted it. Beside Albums, nothing showed at all. It was like I had done no work at all except to import my photo folder. Nothing was in my trash bin either.
    I started again and created one album at a time. I dragged and dropped photos into the album and exited out of IPhoto, opened up other programs and then returned to IPhoto to see if the album was still there and it was this time. I created a second album and did the same thing. This time, for some reason, the albums seem to be staying in place. I am not doing anything differently than last time. After creating three albums, I created a folder called 2014 and dragged and dropped the three albums into the folder and exited IPhoto. They were still there when I returned - YEAH! It seems to be working - for now! I am keeping my fingers crossed that my photos are not going to disappear but I am not going to delete my photo folder from my files just in case!
    Thanks for the suggestions but this may just have been a funny glitch... not sure what happened. I didn't change anything or do anything differently this time except that I am doing it one album at a time and exiting the program between creating each of them and coming back to check... very strange.

  • I can't drag and drop songs onto my iPod from iTunes. (Manual transfer is not working.)  Please help!

    Normally, I just select songs and I'm able to drag and drop them from my library onto my device.  I have an iPod Touch and an iPhone 4.  I want to drag and drop my songs from the library onto my iPod Touch.  I have already selected manual upload instead of automatic sync.  I tried suggestions from the Mac message board (since other people seem to have had a similar issue), and their solutions didn't work for me.  I have restarted both iTunes, my computer, and reconnected my iPod multiple times.  I don't know what's going on, and I can't find a fix anywhere in iTunes help.  If anyone knows what to do, or has any suggestions, please let me know!  Thanks.

    Update: I seem to have fixed the problem!  I went to the "summary" section of my iPod after clicking on the device on the left side of iTunes.  I checked the box that allowed me to "manually manage music and videos" and applied this option.  The songs are syncing!  And, yay, they're playing on my iPod now!  Hopefully, this helps anyone else who might have this problem.  There might be other issues, but this is working for now.

  • Flash Drag and Drop Template in Captivate.  *HELP*

    Good morning.
    I am attempting to use the drag and drop learning interaction
    that comes pre-packaged with Flash CS3 and import it into Captivate
    for use in a Captivate based e-learning exercise.
    I create the drag and drop just fine in Flash, and it looks
    perfect when I publish it in Flash, etc.
    When I attempt to use the EXACT same SWF in Captivate,
    however, it does not work. I can move the drags around the screen,
    but they will not "drop" where they are supposed to.
    Thinking maybe I broke the template, I went ahead and just
    imported it 100% unchanged from Flash into Captivate (without me
    messing around with it changing things around) and it does the
    exact same thing.
    I have successfully used my own homemade flash "widgets" in
    Captivate, to include like click and reveal type interactions...for
    whatever reason, though, I can't get this one to work, even though
    I know it works perfectly in Flash.
    The .swf file was developed using ActionScript 2.0 in Flash
    and I tried publishing it with Flash 9 and Flash 8 as the setting,
    both do the same thing.
    Help!!!?
    Thanks.
    Rob

    Hi R
    Note that the Border simply adds space to the project so the
    playback controls aren't covering part of your movie. Assuming you
    want that to continue AND have a playback control, you might resize
    the project so the playback control is included in the main movie
    as well as being placed in an area that doesn't possibly obscure
    any screen activity.
    Cheers... Rick

  • 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?

  • I just purchased Time Capsule today.  I ONLY want to use it as an external drive.  I do not need it for Time Machine. I can see the TC in my finder, but when I click on a file or video to drag and drop, I get message that TC can't be modified. Help please

    I just purchased Time Capsule today.  I ONLY want to use it as an external drive.  I do not need it for Time Machine. I need to free up room on my computer. As of now, I can't even load updates. I can see the TC in my finder, but when I click on a file or video to drag and drop, I get message that TC can't be modified. Help please!

    I agree with Kappy.. passing files and especially via wireless is slow as slow.
    Just need to be sure your TC is the new AC model??
    And the OS on the computer is Lion?
    Have you completed the setup of the TC via the utility? You do still need to get internet via the TC so it has to be plugged into the main router..
    Give us the full picture of the network.
    Then we can help you get into it.. whether you should put your files on it is another question.

  • Drag and drop issue, please help.

    I can no longer drag and drop photos within photoshop elements 12.  When working with a layer, I want to move it to a layer within another existing file, and no longer have the option.  The only way I have fixed the issue in the past is uninstall and reinstall the program.  I've read other forum posts and followed the instructions by resetting preferences and it does not work.
    Does anyone have any solutions to this issue?  Please help!

    With both files open, simplest to tile them side by side, you should be able to drag the layer from the source file onto the target file. So long as it shows the 'grasping hand' you can release the mouse and it should add the layer to the target.
    So what is happening now on your system? When you drag the layer to the target what icon is shown - 'grasping hand', 'no entry', something else?
    Cheers,
    Neale
    Insanity is hereditary, you get it from your children
    If this post or another user's post resolves the original issue, please mark the posts as correct and/or helpful accordingly. This helps other users with similar trouble get answers to their questions quicker. Thanks.

  • I recently uploaded some pics and videos from an ipad and a camera. I put them all on Iphoto and backed them up in my personal folder. I then trimmed one of the videos and dragged and dropped that into the master folder(pictures). Its now gone!! HELP!?!?!

    I rencently added all my photo's from my Ipad and Camera. There were photos and videos on both. The import was done through Iphoto and then transfered to my backup in my pictures folder. I then took one of my videos and trimmed it and then addded that trimmed version to my back up(pictures)albumn. It asked If i wanted to replace existing photo or cancel and I hit replace. Now the file plays great on Iphoto but I am unable to share it through any form(facebook, Imessage etc) and in my back up(pictures) it says the file in only 87kb. I dragged and dropped it from Iphoto to the desk top along with another important video, when I hit get info on both of them one of them is a full sized video(50mb or whatever) and the other one(the one I am trying to recover) is only the 87kb. I want this full file avaiable to me how can I get it back?? it is already deleted off the camera??? please please help me.

    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

  • Why am I having trouble importing vCards? I follow the Help Center instructions by dragging and dropping, but some don't sync into the cloud. And why can't I drag multiple vCards? I have over 4,000. Please tell me I don't have to do one at a time?

    Why am I having trouble importing vCards? I follow the Help Center instructions by dragging and dropping, but some don't sync into the cloud. And why can't I drag multiple vCards? I have over 4,000. Please tell me I don't have to do one at a time?

    carolinechx wrote:
    i know the description may be a little bit too confusing
    Mostly because you are not using any capital letters or paragraph returns and your post is difficult to read.

  • Hi - I keep receiving the following error message on a song I purchased from itunes and am now trying to drag and drop to my iPad: "you must download items from icloud before you can copy then to iPad" what does this mean - please help! Thank you

    Hi - I keep receiving the following error message on a song I purchased from itunes and am now trying to drag and drop to my iPad: "you must download items from icloud before you can copy then to iPad" what does this mean - please help! Thank you

    Hi Poonam26c,
    If you do not have a local copy of a song which you have purchased (i.e. it is available via iTunes in the Cloud), you may need to redownload it before you can transfer it to your device. You may find the following article helpful:
    Apple Support: Downloading past purchases from the iTunes Store, App Store, and iBooks Store
    http://support.apple.com/kb/HT2519
    Regards,
    - Brenden

  • Help needed in drag and drop of Flex tree

    Hi,
    We have an application which allows drag and drop between
    multiple
    trees and lists.
    Here are the steps I follow to refresh on drag and drop:
    1. Dispatch a custom event which calls server.
    2. On successful response from server I change the model
    which is
    data provider for the tree.
    3. Then, set a flag which triggers 'invalidateDisplayList'
    and 'invalidateList' for tree (and other listeners).
    4. The tree refreshes fine. But as soon as I drag and drop
    between
    trees again, I get this error in Tree.as:
    TypeError: Error #1010: A term is undefined and has no
    properties.
    at mx.controls::Tree/::updateDropData()
    at mx.controls::Tree/calculateDropIndex()
    at mx.controls.listClasses::ListBase/showDropFeedback()
    at mx.controls::Tree/showDropFeedback()
    The behaviour is weird, sometimes the browser hangs and stops
    responding.
    I am calling 'contentTree.showDropFeedback(event)' in my
    dragOver
    event listener which is triggering error.
    My tree data provider is a custom class which has 'children'
    array
    collection attribute.
    Any help on how to resolve this issue would be highly
    appreciated.
    Thanks in advance,
    Sujatha

    the major restrictions in its implemented only in
    jdk1.1.Why!

  • Help needed in Drag and Drop and  resizing of image icons

    Hi all,
    I'm doing a project on Drag and Drop and resizing of image icons.
    There is one DragContainer in which i have loaded the image icons and i want to drop these image icons on to the DropContainer.
    After Dropping these icons on to the DropContainer i need to resize them.
    I have used the Rectangle object in resizing.
    The problem now i'm facing is when i drag, drop and resize an image icon and when i try to drag, drop a second image icon the first image icon gets erased.
    can any one help me in fixing this error.
    if u want i can provide the source code.
    thanks in advance
    murali

    the major restrictions in its implemented only in
    jdk1.1.Why!

  • I have a seagate 1tb hard drive and a 16gb memory stick, how do i transfer avi files from one to another as the click drag and drop wont work, please help?

    i have a seagate 1tb hard drive and a 16gb memory stick, how do i transfer avi files from one to another as the click drag and drop wont work, please help?

    Greetings,
    What happens when you drag it?
    Make sure the drive you are moving the files to has enough available space to receive the file:
    Click on the movie file and go to File >  Get Info and note the "size"
    Check the drive to which you are moving the file to make sure it has enough available space: https://idisk.me.com/madisonfile-Public/web/finder-drive-available-space-and-for mat.html
    Also note the format of the drive you are copying too.  If it is not Mac OS Extended or FAT (not recommended unless you are taking it to a windows computer) then that may be the issue.
    Hope that helps.

Maybe you are looking for

  • Console.app "All messages" view is empty

    When I open the Console.app on my new MacBook Air, the "All messages" view is empty. I've tried deleting logs and fixing permissions, but to no avail. Any tips?

  • Can't transfer songs to ipod because of !

    I have a new computer so I transferred all my songs on my ipod mini to the library - then I went to update my ipod - lost all songs because they had ! next to them - They were all purchased music - How do I get back on ipod THANKS

  • ATA bus error

    Hello, I have some problems with hard drive on my laptop. Sometimes everything freezes for few seconds (usually during start-up, but sometimes after I login) and I get some errors. After that, everything seems to be working fine. Part of dmesg with e

  • Got error(JS alert message) that "Given key was not present in the dictonary". After clearing history error gone. Not getting answer?

    I have asp dotnet website and when I am log in into it then I got an js alert message i.e. "Given key was not present in the dictonary". When I am going to clear clear browser history then it working fine without error. We know it thats why we are cl

  • Can Soap sender channel be directed to Soap reciever channel

    Hi I have a three layer architecture on the target side. First layer is Web AS, Second layer is Web AS asd third is PI server. Now i am recieving Soap messages from a source PI. Its a SSL communication. I have to terminate SSL on the first Web AS and