Advice on Drag and Drop

Hello Forum, I was wondering if anyone had the time to give me a little advice on how to best go about drag - d├⌐poser component in Flex. I am fairly familiar with the framework and have used drag and drop before, but it's a little more complicated.   I have a generator of form drag / move.

The user will be able to create a set of fields and then allowing them to drag form fields in it.  Once the form field has been created, it will become dragable autour the fieldset current and also in other games of fields.   It's the strawberry that I wondered about.  What flex components should I use as a field and how can I manipulate them dragged around the fieldset.  When the field is slipped on another in the set of fields that they must all move down to create space for it to be released in and if its sliding out of the fieldset the gap where he should be filled with the other fields.

Any ideas? Thank you, Tom

Forgive me if this isn't entirely Flexish.  I did a lot of work in AS3 lately and I think that mode right now.

Given that your fields, you use really are only tools to store data that will eventually be used to build our real fields I would use a simple rectangle that maybe has a right click menu to open screens to set values related specifically to the field.

The fields themselves can use the mouse down / move events for the movement (I'll assume you know how to do this.)

When you move them around the field that moves can update a value object with coordinates.

You can perform a test of positioning between the fields that are already placed.  If a field touches another (flat above it), the two fields trade x, coordinated and centres of the fields helps identify which way the field under must move itself.

When the moved field is deleted all fields who were previously commit away their current coordinates to perminant storage and the fall field would add to your fieldset data structure.

Sets of fields, which I suppose are simple containers, would need only contain a list of the fields it contains and all values related specifically to itself.  The fields contain their own details coordinated and all other values have been set.

All of this could be broken down into a relatively simple structure of XML or stored in a relational database.  You may consider managing the events and data structure updated using Blaze DS or LCDs.  In this way, others may consider the changes taking place in real time from another browser.

I realize the implementation more difficult is their thinking but I hope that helps at least to give you some ideas.

-Joe

Tags: Flex

Similar Questions

  • I have problems with gmail with firefox. Refreshing page is slow; Drag and drop files in email sometimes do not work.

    My problem is mainly associated with gmail. When I click on return to the Inbox after reading a mail, it takes a good few seconds while in the past, it was always instant.

    My other problem is drag them / move the files as an attachment in gmail. Sometimes it won't work and I have to use the manual icon attaches trombone. However, if I restart firefox and re - connect to gmail, it will work again.

    I also noticed that when you drag an image in the mail window, it will not become an attachment, but it will appear instead. Is there a way where I can choose to have inserted images as attachments rather than displayed in the mail?

    Thanks for any advice you can give me.

    Hi Guigs2,

    Thanks for your advice. I'm not sure what will happen if I change my profile. I'm afraid I'll be somebody else for those who know me.

    So I decided to try the second option on the plugin check. After I clicked on the link the message says that my version of firefox is not the last. I've updated it and so far I don't have drag and drop the problem but we will give it some time and see. This problem does not occur all the time but it happened a few times, so I guess I should try it for a while.

    Thanks a lot for your advice

  • When do drag and drop into Itunes, my original folder disappears

    Hello

    I recently moved to one old pc to another. My music library and the melodies are all ok and set.  When I used the old pc, I could drag a folder with music in there and drop it into ITunes.  ITunes and then implement these titles in the iTunes library.  Now when I'm on the new pc, the folder with the music she disappears from my pc as if he moved the contents of the iTunes folder and nothing left in the original spot I had music.  I'm all for backups and usually keep the same music in ITunes and a return to the top of file, but for some reason, if I drag and drop into iTunes, the original folder is no more.  How can I prevent iTunes to get rid of the original music file?

    Thank you

    Where exactly the media you add located? What is the setting for the media folder in iTunes > Preferences > advanced. Without knowing the details, I think that would be the media is located in the designated folder media and moves according to its metadata when you add it to iTunes. In general, he would go to < Media folder > \Music\ < artist >-< Album >------# < name >. < Ext >.

    For advice on the best arrangement for a library iTunes and your iTunes backup for Windows with SyncToy library for suggestions on the mirror of the library for a second drive to save it, see make a library of portable split .

    TT2

  • Windows XP SP3: Unable to start, System Restore cannot drag and drop ALL the files/folders on the desktop and applications, many unable to start, services cannot search, cannot copy or transfer the any files folders...

    After a recent power outage, my system has restarted with a weird and very common Windows problems range. The system boots fine, all my personal files/folders/apps are intact, have suddenly stopped almost all functions of applications, but many crucial functions of the Windows kernel. Everything seems to point to several Windows Services are unable to start (administrative tools on the start menu). I am running Win XP SP3 and that he was going to upgrade to Windows 7, but I wanted to backup everything in advance. As I have 29 000 hours on my C: drive and a lot of time invested in my system, files, and applications, I am extremely reluctant to risk losing my files and applications by performing any type of reinstalling Windows. Strangely, begin to almost all my apps and all my files are accessible for the most part, but I've lost the ability to drag and drop files, folders or items in a list within the applications COMPLETELY. I can't copy or paste anything, can't move the desktop icons (although I can create new files and folders). So at the moment I can't save anything or even a single file transfer to a hard drive on another storage medium. Immediate reaction: try safe mode and try the system restore safe mode has the same problems (likely due to the large number of system services that inexplicably refuses to start) and the system restore says an error window saying "system restore is not able to protect your computer at this time. try restoring the system running and restart again", which of course NEVER changes. It's the equivalent of getting a tire on your car in the middle of nowhere to find the spare tire flat and the missing Jack. I have used to be fanatical about the definition of the regular restore points, but now can not access them. I have backups of most of my personal files, but over years have lost most of the original installation CD for many of my applications (there are over 100 applications on my system) and I don't want to lose the file associations and architecture of directory tree that it took my so long to implement. I started with Win XP media center edition of first (circa 2004 or almost) and have migrated twice more of 3 hard disks and 2 computers. All this time (5 years of daily use), I have NEVER known so many malfunctions for as many Windows basic and vital functions at the same time. I tried a lot of 3rd party "windows fix - it / registry repair" apps, all have no effect. Everything I can speculate is there was some serious damage to the registry and have no idea how/why so many Services refuse to start. In MMC, more than half of the services actually start and run, the rest all give the error message "the service or dependencies is not start (error 1068).» In addition, very oddly, no. APPS or windows appear in the toolbar AT ALL, but the Quick Launch toolbar works very well, just like the tray button and start tasks (?! )!). If I reduce a window, it "disappears" (Nothing on the task bar), but I can restore it using the alt - tab keyboard shortcut to switch apps, so all applications/windows appear on the list of the Task Manager. A few apps is paralyzed bad, as the player windows media, itunes, etc. (I guess because the service windows audio can not not start), some won't start at all, but 90% of them work fine, except to try to copy or back up all files. I can create new files, however. I'm desperate to find a solution to repair XP3 Win WITHOUT losing my installed applications and files, before I try and switch to WIndows 7. Any help/suggestions/links/advice would be much appreciated. I'm an experienced user, but I've never met so many malfunctions based on the OS at a time. I, however, very painfully learned (years before that my system so complex) it's been almost a re-installation of Windows guarantees to lose my installed apps and files, the directory tree architecture associations.

    Help, please!

    I'll be honest with you - your message is so difficult to read that I don't bother to go through all that. Next time consider using white space, ball or points numbered, etc. to make your message more readable. I stopped reading after your first sentence and only scanned the rest quickly. I do not mean to hurt your feelings; just trying to help you get targeted answers you need for the future.

    The blackout has corrupted your Windows installation. Back up your data now. Since you have problems so much, it would be probably best is to remove the hard drive, put it in a USB drive enclosure and attach it to another computer to copy the data OR start the target with Linux Livecd such as Knoppix system and copy the data to an external hard drive. IOW, do not use the damaged windows to try to get your data.

    You can try a repair that will leave your programs and facility data intact, but with this widespread bribery, it is unlikely to work. However, it takes only a few minutes and is so worth a try. If the repair facility does not work there is nothing to do, but a clean install. And Yes, it will mean that over again.

    Consider buying a UPS to help prevent future damage by power outages. For a single computer, you should look for one in the area of $60 to 80. A more expensive UPS is not necessary. Another good disaster recovery strategy is to buy an external hard drive and Acronis True Image. You can image your system (and can make an incremental backup image so that your image is still current). You can apply your image and be back running that you were in relatively few minutes after a hard drive or Windows to fail.

    http://www.michaelstevenstech.com/XPrepairinstall.htm - repair install how-to
    http://michaelstevenstech.com/cleanxpinstall.html - Clean install - how-to
    http://www.elephantboycomputers.com/page2.html#Reinstalling_Windows - you will need at hand MS - MVP - Elephant Boy computers - Don ' t Panic!

  • Cannot move or drag-and - drop files/folders on desktop

    The other day I noticed that I could not move or drag-and - drop folders or files on my desk.  Even with photos, etc.  When I try to move them into the office, following shadow file the mouse as usual, but when I left to go to the let down, I get a small black circle with a line through it.  This indicates that the procedure is not allowed.  Do not hesitate to offer easy solutions/advice, that I may have missed it, but trust me, I googled several tips on what to do with no luck!  I even did a backup of the registry to try a 'dragdropfix.reg' that I found, but this info was from 2004.  When I tried, I got the message: "cannot import c:\Documents and Settings, etc., etc\dragdropfix.reg the specified file is not a registry script.  You can only import binary registry files in the registry editor. (whatever that means)

    I found I can add new folders, files and images for the office and can delete them.  I can't, however, drag-and - drop into another folder on the desktop. I can't also drag them into the trash to delete, but I can right-click and then delete them.

    I tried the simpler options to right click on the desktop to make the various advice offered by doing this, but the chance either.  Please offer advice, even if you think I can have already tried.  You never know.

    I am running Windows XP Home Edition with IE 8.  If you need other info, please let me know and how to find it. I'd be happy.  It drives me crazy and I'm confident and hoping you ladies and gentlemen can offer advice on how to solve this problem!

    Thank you

    Achilles777

    Boot is a way to solve this problem

  • AF: component InputFile | Drag and drop functionality

    Hi all

    I use JDev 12.1.3.

    I have an obligation to provide drag and drop installation on InputFile component. is it possible that I can enjoy this function to the af:InputFile component?

    sample look and feel of drag and characteristic of gout can be found here that is implemented in html5.

    https://HTML5-demos.appspot.com/static/DND/all_types_of_import.html

    Thank you

    Vieira

    It seams to be a bug or feature of IE (I checked ie10 because I don't have a patchted for ie11 system). IE intercepts the drop event and open the zip file. The web is full of advice on that. This seams of methods to work, but I did not test it:

    https://opensourcehacker.com/2011/11/11/cancelling-HTML5-drag-and-drop-events-in-Web-browsers/

    Timo

  • Drag and Drop failure subtitle Timing

    I drag an interaction - déposer in Captivate for the first time and I'm fighting to change his behavior in the way I want.

    I'd like the legend of failure to appear on the screen after users click on submit (which have so far), but I want to stay on the screen and give users control over how and when to close. So far I can get it to show up, and I can extend the time it shows, but I can't find a way to give users control over closing/hide it. I tried to add a button that it would close, but the legend of failure does not appear in the drop-down list of the forms on the page.

    How all do you handle them it when you use the drag and drop interactions?

    Legend of failure as all the legends of feedback are related with the interactive object, you don't have total control over them as on objects with a separate timeline. These comments messages do not have a separate calendar.

    You can work around this by not using not the legend of failure, but the action of the failure to show a previously hidden with close button text container. Make sure the close button has a suspension point, later the break of the D & D (default is 1.5secs).

    What version do you use? It helps if you say that when you post a question. States have been added to & D D 9 Captivate. Here are a few articles I wrote with advice for D & D:

    Drag & Drop - Captivate blog tips

    & Slipped in 2016 with Captivate 9 - Captivate blog

  • Drag and drop quiz

    Hello!

    I'm doing a quiz and by slip and fall interacations.

    I was able to add drag and drop for the quiz, but not as I want.

    There are 6 options to drag its corresponding base (there are 6 of these aswell).

    So A can only be moved to B, and C can only be slid to D and so on.

    If A is slipped to F but C is slipped to D. The user must always get 1 point for one who is correct.

    But the way it works for me now, if you don't get everything right, you won't get any point.

    Is there a way to fix this?

    Thanks in advance!

    In this case, you can create a v_score user variable to store the partition. Start with a value default of 0, and for every good drag & drop law you can increment the variable with a number of points by using the action of the object. The result can easily be inserted into a container of text to display to the user.

    You can calculate even the percentage etc. This is a different topic, where I show how to create intermediaries mark slides:

    Intermediate Score slides - Captivate blog

    As for the actions of the object look: advice & glide - Captivate blog

  • Drag and drop - lots of sources to a Drop target

    I have a D & D built scenario where I have 13 objects potential drag, enter a single drop zone. I have the set drop target to accept all the potential that they may all be considered "correct" its a learning experience, not a question of quiz, as well as several items can be deleted. I want to count to 5 and then offer the opportunity to continue to the next section.

    I wonder, to simply count items 5 (in any combination), I would just do a conditional action called "correct" and then set it to zero... and then when an article is accepted, a tip action sets 'proper' fix + 1. and then a conditional action would trigger the 'next' button and the message when correct was equal to 5?

    I did something similar from the selections with buttons, but not with the drag and drop. Does anyone have an overview of how to count the elements correctly deleted? When my account hits 5 fell, I want to bring up the 'Thank you now extend' option.

    Thanks in advance.

    JPM

    Hello

    It is a possible workflow, I used a tip action, but if you want to do this more than once, or to different numbers of counter, I propose to create a joint instead. Will try to explain my work flow (did not use the 13 7 do but drag sources, my account was created to3):

    1. Create a v_counter variable user, with the default value 0
    2. Create interaction D & D according to the normal procedure, BUT do not forget to assign a type to the drag_sources; that will make it easier not only to create the interaction (you need only a single link from 'type' to the target) to affect the action. I've created a «Ellips» type
    3. Create the message appears when the user drags the correct number of objects, and the next button, but both are invisible in the properties panel. I have marked their 'Star' (for the message) and BtNext
    4. Create an advanced (or shared action) which will be conditional with two decisions, the first decision is a Standard measure simulated to increment the counter. Then, check the meter and displays the message and button if the number is correct.
    5. Assign to this fast action to the action object column (see Format tab for the Actions of the object in case button you are on CP8) for the type.

    More tips for D & D: advice & glide - Captivate blog

  • Newbie question with multiple do drag and drop objects

    I am trying to build a drag and drop quiz where you have a list of countries and move the correct country in an empty space in a paragraph to fill properly the sentence (see attachment).
    I can get the first country to drag and drop correctly. But when I tried the second country in the list of code, I get the following error message:
    "definition of the double function of 1021.
    Here is my code:
    afghanistan_mc.addEventListener (MouseEvent.MOUSE_DOWN, startDragging);
    function startDragging(myevent:MouseEvent):void {}
    afghanistan_mc.startDrag ();
    }
    afghanistan_mc.addEventListener (MouseEvent.MOUSE_UP, stopDragging);
    function stopDragging(myevent:MouseEvent):void {}
    afghanistan_mc.stopDrag ();
    }
    burma_mc.addEventListener (MouseEvent.MOUSE_DOWN, startDragging);
    function startDragging(myevent:MouseEvent):void {}
    burma_mc.startDrag ();
    }
    burma_mc.addEventListener (MouseEvent.MOUSE_UP, stopDragging);
    function stopDragging(myevent:MouseEvent):void {}
    burma_mc.stopDrag ();
    }
    It seems that the problem is that you can't 'startDragging' and "stopDragging" defined in different functions. I saw something on the use of the target property of the MouseEvent object when you have multiple objects drag-and - drop, but I can't find how to do this job.
    I would be grateful any advice!

    You have functions duplicate definitions.  Either use the same function for the two MCs (startDragging and stopDragging) by putting two eventhandler in each function calls, so you have 2 each, or declare a separate name as startDragging and startDragging2, etc.

  • Drag-and - drop AS3

    I am Luciano I Milano Italy, I have a problem with drag drop in AS3 and I would like to know if possible to use the correct method for this project, because I stopped and that's why on that I'm not not to be able to go.
    I started a project named Puzzle so I'd realizate with drag-and - drop in AS3 but I have some problems with it, and I am very strongly if something can help me.
    Imagine my project use the BitMap class to create and to use the copypixel method to create a grid brik which contains a call and that stored in a table and completely visible.
    (1) - first problem is to move all the brik for grilling at an another correct grill.
    (2) - second problem, I want to say where I can mix a brik stored in a table.
    to simply understand I attach my code

    Thank you for all that Luciano

    Sorry, but your advice is not good for this example because it is not working properly.
    I try to change a method setPres, but nothing happens when I click in a piece by dragging doesn't work.
    I thought a lot to try it, but I did not find the right solution, after my test I said, the problem consist to identify a table object because there is no property in a cell and that the event does not identify a specific piece that is stored in the table and the startDrag() method return false statement otherwise I can not know to solve using this change.

  • Error #1069: TextField drag and drop

    I created a clip I creates instances of the runtime by clicking on a button, these movieclips all have the anuee name # where # is the instance number.

    My problem is that the clip has a text box Dynamics slap in the middle of it that does not work with my drag and drop function. If I shake the cloud around the edges, drag drop works. If I click in the Middle it does not work and gives the following error in the output window

    ReferenceError: Error #1069: property not found dropTarget on flash.text.TextField and there is no default value for Suite_fla::MainTimeline/myDragHandler()

    Here is the myDragHandler function which only downwards click the Component Manager I have also a top manager who made stopDrag() but it's the same thing send me two errors for each click.

    function myDragHandler(event:MouseEvent):void
    {
    var object = event.target;
    object.startDrag ();
    };

    So I need to drag the clip even if the user clicks on the text in the middle of the box. Advice or advice is welcome.

    Thank you.

    in your loop where assign you event handlers, try to set the mouseChildren to false on the MovieClips bcloud property.

  • Anyone know why my iTunes songs don't drag and drop MP3?

    I just bought a Sandisk Clip Jam MP3 player.  (Sorry, Apple: my new Shuffle was too difficult to use without screen.)  I tried to drag and drop the music files I want on that to his library iTunes x 12 on my Macbook, but no sign appears when I do that, and they don't "stick".  I followed the instructions in the manual. Anyone have this experience with iTunes? Must be a good reason, but I don't know what it is. Thank you!

    If he plays that mp3s are the tracks that you drag in mp3 format?

  • How to drag and drop photos to photos on memory stick

    seems I can is no longer just drag and drop photos on memory stick of my mac progesterone... .any suggestions?

    I don't know your problem makes the impression that I do not understand the relevance of female hormones.

  • Drag and drop photos to photo streams in folders

    I want to drag and drop photos from my photo stream on my book of mac pro to my photo folders. I am a new user of apple.

    To begin with, that we need details - what version of the operating system and Photos do you use? What are your iCloud on Mac and on every IOS device settings? What exactly do you do? In the Photos files are not for Photos, albums are for Photos and folders for albums or other

    LN

Maybe you are looking for

  • OfficeJet 7612 scan to the computer (RESOLVED)

    I wanted to just let everyone know if they have a problem with the inability to scan from the printer to the computer you need to install the NETWORK that this feature does not work on USB. 1. install the printer on the 'network '. 2. open the HP sof

  • Images on Amazon will not appear

    I tried to download the latest version of Skype for Mac. On the install window, there was no option to "Upgrade the Skype for Firefox Extension". Images on several sites Internet as Amazon will not appear. This has happened Each time Firefox opened I

  • MOTOBLUR accounts and email

    As long as I can remember, I had a gmail under Motoblur account accounts and also a Gmail in other accounts. They are the same account. For a little while now it seems that I get two alerts for both accounts when I receive by e-mail. I have contacts

  • How can I change the language from Spanish to English on my bought Spanish netbook that my Spanish is mediocre at best

    I have an Acer Aspireone, which is brand new and I live in Spain. I had an English computer that got stolen and had to be replaced by another, so I bought this Acer and several people have told me that I can change the configuration of messages-keybo

  • How can I repair file DBX corrupted outlook express.

    2 GB of data is available canned Inbox.dbx, but because of the corrupt header files dbx or any other problem, I'm not able to see the mails. Kindly help.