How to approach the cell relative to the TileList component during drag-and-drop processing

Is there a way to address the cell tile being hit against during the processing of dragDrop function?

private void myDragDrop(e:DragEvent):void {}
e.Whatthe #* &$
}

< mx:TileList id = number of rows 'tilelist1' = '9' columnCount = '9 '.
dragDrop = "myDragDrop (event); "dataProvider ="{anyOldAC}"/ >

If I drop something on the 3rd line and the 5th column, I would like to be able to manipulate the dataProvider the15th enter without having to understand the number of cells in the geometry of component and mouseX/mouseY. With the help of component geometries just seems too fragile.

Got the answer from Joan Lafferty on the forum of programmers:

Use calculateDropIndex(event:DragEvent) which is a function
for a TileList component. Return the index where the item has been deleted.

And it works:

private void myDragDrop(e:DragEvent):void {}
var dropIndex:int = tilelist1.calculateDropIndex (e);
Alert.Show ("dropIndex:" + dropIndex);
}

Thank you, Joan!

Tags: Flex

Similar Questions

  • How to go to the next slide during Drag and Drop

    I'm trying to go automatically to the next slide after the user makes a three 'drop zone' drag and drop.

    I see the action on the successes in the Panel. I chose to go to the next slide, but nothing happens after I have test.

    I also put in place the right answers for the drop areas three and thought that could trigger the part of "success."

    but still nothing happens.

    Any thoughts?

    Hi again,

    I understand, but in order to move to the next slide automatically the drag and drop must be introduced. It doesn't matter whether or not you include your drag and drop in a quiz. The option to send automatic drag / move it will include not a quiz, is to check if the answers are correct or not. You can leave to include it in an unchecked quiz.

    Thank you!

  • How to keep the spaces outside the files when you drag and drop them in a .bat file.

    I have a bat file, where I run a powershell script passing one argument which is a folder name. I added the file beats in my office, so I could just drag and drop a folder in the Explorer on the bat file.

    Works very well. With the exception of a killer detail. When I drag and drop a folder that has spaces, the process does not receive the full path. Space is causing the script to fail. Thus, for example, I can't drag & drop c:\program files\ in the bat file.

    Is there some setting in which case I can force drag & drop to use filename not spaced? Why don't the OS automatically in the argument with the quotes around it?

    In a command environment that it is practical common to surround with quotes of files names. If the names contain no spaces, then double quotes can be omitted. That is why your batch file should read

    PowerShell.exe myscript.ps1 "%."

  • Tip action to show only a previous button on a slide so the learner clicked on the button Submit on Drag and Drop

    I am a user of long date Captivate and have dabbled with advanced Actions and Variables, so know just enough to get me in trouble. Hoping someone can help me with what I hope is a simple tip action:

    I am currently using CP8 and created a training where learners click on a map of building to go to different "rooms" to complete an interaction drag-and - déposer a certain topic related HR. The problem is that some of my learners test forget what 'rooms' they have already read and will click on those they have already visited. I added a back button, so that they can return to the map if they made a mistake, but now they are able to leave the slide without completing the interaction drag and drop.

    Basically, I need to hide the back button unless the learner has already completed (for example, the user clicks on the button submit to) the Drag and Drop interaction, but I'm not sure how to set up. Can anyone help?

    Thank you!

    Hide the button back to begin with. A tip action can be triggered by an event the success and failure of the & slipped. I guess that you will need at least two commands:

    • View the "back" button
    • Go to the next slide.

    It seems the simplest solution. You can also ignore the slide D & D when they enter a second time, but then you will need a Boolean variable to be turned on/off by these same events and a conditional action on which checks this variable and immediately jumps to the next slide when it is set to 1.

  • Hi, SEND my button has disappeared from my Apple Mail &amp; procedure of customization of the DISPLAY toolbar displays the dialog box with no icon of the button SEND to drag-and - drop on my desk.

    G, day,

    I have an iMac 21 "and use Applemail. However, my mail SEND icon is spent on the missing list and raise VIEW / 'Customize toolbar' does not contain the icon SEND so that I could drag-and - drop to the right / top corner where it should belong. Any help would be welcome.

    PS My incoming mail has also stopped. Moderate P.C. Savvy.

    Kind regards.

    Alan B.

    The button send when you are working in a new message or a reply. It is not in the view of the overall message.

    Missing when you create a new message or reply to a message?

  • Automatically open the change step where drag and drop a steptype

    Hello

    I would like to open (launch) Assembly step (labview module) when I drag and drop the step type. TestStand can step edt by the 'Edit' button or shortcut (Ctrl + E).

    Is it possible to do?

    I know that shortcuts are hardcoded...

    Thank you for your help

    Yannick

    Yes, it can be done. See this question recently on the same subject.

  • Is it possible to reduce the "suction" items fall dragged and drop?

    I am developing a game where the user must correctly space objects between them depending on what is their relationship to each other.  Falling objects are in fact completely transparent, and the user must place the point slide perfectly on top of it. The problem is that when the user does not place the object from sliding directly on top of the object to be moved, it nevertheless gets pulled to this object. 1. I want that there is virtually no traction power.  2. I would also like the user to be able to stream, click on the object to move and move it slightly until he thinks it's perfectly fine and the stay of the object where it let him down - I don't want it pulled back to its origin.

    If possible, let me know!

    Thank you!

    Ryan

    Hello

    It is possible to redrag and withdraw the power of pull by setting the following two parameters.

    1 Select the Target Drop, Drag and Drop Panel > accordion target Drop, change of position as "absolute".

    2. activate the option "Source Redrag dropped" to drag and drop the Panel > accordion Interaction properties.

    But with these parameters, it allows to drag the object even when it is removed properly.

    Thank you

    VERALINE Sukumaran.

  • The SMA ListBox control, drag and drop reorder?

    Hello

    Is it possible if, in my box, I have a ListBox control on the SMA (Mac OS X) to reorganize the content of this list by dragging the elements around? I was not able to find examples in the sample code, nor any references to a DND API in the docs. Any help is very appreciated. As always, thanks in advance!

    -josh

    No, I'm afraid there is no magical flag

    That said, I think it's a little better than what you have outlined. If you use the MDRI * set of objects, you override just Track (tracker IADMTracker) on the IADMHierarchyListEntry (as opposed to the IADMHierarchyList). If you do not, it'll still be the proc Track() on entry, not in the list, so that you always know which entry of the event began-the easy part. Everything else, basically to do yourself so, Yes. Here is roughly what I do:

    On mouse down, use PickLeafEntry (click) to figure out what clicked. I do a quick check at this stage to ensure that the click is not on the arrow of the expansion, but you probably haven't this problem if you use this for a straight up list box. Determine if the user has clicked entry is draggable; If so, set a flag that says "drag underway".

    Then, when intercept you the moving events, make something similar and determine which input you are hovering above. You can do things like set a flag on this entry when his drawn it looks different. Just make sure that when you hover over the following keep you a reference any to it so you can clear the said flag when you hover over again somewhere else, you want to probably check whether or not the entry in question is a viable drop target and you can attract once again, the entry on different.

    Finally, you enter the high action. Once more, I uses the location of the click to determine who it is and if it is a viable choice (you can always bail if you must!). Can I get a list of selected items and it's my list slipped.

    Now, if you do order it again, you will need to find tune elsewhere a little, since you will probably want to choose your "target" as "seams" between the elements, rather than elements, and you can not use the PickLeafEntry to do it - you can always convert the click for global or local coordinates and use it to know exactly where you are compared to the borders of the entry (for example within 5px or not).

    One last note: scrolling. Ugh, it's a pain in the *. In the action move I determine if I am near the top or bottom of the list and so I begin to scroll in the appropriate direction. I begin to scroll using a timer. I put the enum direction and activate the timer. In the callback, I check the direction and move up to an entry. The thing to do to go faster or slower is to adjust the length of the timer, based on how far above or below the mouse is the edge of the list box. I have a maximum and minimum range for the period, and whenever the scroll of the pulse timer, I recalulate his period and restart (after scrolling). In this way, it speeds up or slows down while you adjust your position. Yes, it's a lot of work, but I must admit, its pretty slick when its right.

    in any case, I hope it helps!

  • Export of Photos - how to change the drag and drop non-original standard 'export '.

    Hi all Mac experts.

    I'm on OS X 10.11.3 and 1.3 on an iMac Photos 2009.

    Like other users, I had been frustrated by the slow export of files by drag / move.

    I have already learned that at least one of the reasons are that the files are converted if simply to slip and fall.

    Here's my question: is it possible to define the standard action on drag-and-drop to be 'non-original export?

    and if so, how?

    Thanks and best,

    What.Ever.Flies

    You can't and can never change how to drag and drop work - if you hold down the option key by dragging and dropping a picture, you will get the unmodified original or are you export the unmodified original, you will get it

    LN

  • How can I change the size (HUGE 72 x 72) of my drag-and-drop icons?

    Is there a windows hotfix, the registry setting, utility tweak or SOMETHING that will give me an icon of normal size (small) when I drag-and - drop in Windows Explorer?  I am happy with the size of all other icons, but would be willing to change whatever it is to change the size of the drag-and-drop icon.  Windows Explorer is too difficult to use in the Details view when the icon drag-and - drop is that great.

    Hi redhawk463,

    When you use drag it and drop method the icon font size would be in the same size of the real size of this file.

    Let us know if the real size of the file is the same when you drag and drop the file in Windows Explorer.

    Work with files and folders
    http://Windows.Microsoft.com/en-us/Windows-Vista/working-with-files-and-folders

    I hope this helps!

    Halima S - Microsoft technical support.
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • upgrade to connected hp eprint - can't drag and drop apps to organize them the way I did before!

    I upgraded to connected HP eprint today.  Now it wont let me not to the eprint site (and, Yes, I would not have gone back if something did not work to connected hp).

    I could drag and drop placement of my apps to have as I would like on the touchscreen to eprint printer.   However, I can't do drag or drop whatever it is connected HP, and I see no help on the management of the investment of the apps on your printer.

    How is that possible?  It was easy before - printer just drag-and - drop and website updated.  I have an officejet 7610.

    Thanks in advance!

    Thanks for trying, but your answer is incorrect, according to an email I received today from HP connected:

    "I have reviewed your email. I understand you have questions related to the reorganization of the order of apps on the printer. I know this can be frustrating, and I want you to know you are certainly valuable for us and I want to do everything possible to ensure your complete satisfaction. The following information should provide the answers you need:

    (1) Unfortunately when HP has launched the new website (www.hpconnected.com) they do not include a method to rearrange applications on the printer. They can include this feature in a future update, but as this time it is not available.

    (2) If you did upgrade to connected HP eprintcenter, you do have the option of return. EPrintCenter is being be eliminated and retune to the old site unfortunately is not possible. »

    I hope that < < S-O-O-N > > HP fixed this new Web site - it's crazy take-out all controls like that from their customers and not embellish their or at least let them be.

    I can take this OJ 7610 back for a new brother 11 x 17 all-in-in-one - they look nice )

  • Drag and drop of MC to the other?

    Hello

    I created a bunch of MCs since a single MC in the library dynamically.

    Inside the timeline of the MC, I wrote drag and drop code.

    The MC is a parent movieclip, then residing in a scrollpane.

    I was wondering if it is possible to write AS3 to drag the clips into an another movieclip?

    If this isn't the case, the way I got it, is it at all possible to drag one MC container to another MC?

    Thank you

    Shaun

    You will need to create a new listener that monitors for MOUSE_MOVE which can constantly check the position of the cursor from whatever you intend to impose limits.  But the real test by you could be a little tricky to manage in terms of use of a hitTestObject approach since you can't test the object moved against its parent (because it in itself defines the limits of the parent).  You can optionally create another object within the parent that you test over hitTestObject using, maybe we you the alpha 0 for value so that you can't see.

    In all cases, the general approach would be something to the effect of...

    MC3.addEventListener (MouseEvent.MOUSE_DOWN, dragIt);
    function dragIt(evt:MouseEvent):void {}
    MC3.StartDrag (false);
    MC3.addEventListener (MouseEvent.MOUSE_MOVE, checkIt);
    }

    MC3.addEventListener (MouseEvent.MOUSE_UP, dropIt);
    function dropIt(evt:MouseEvent):void {}
    stopDrag();
    MC3. RemoveEventListener (MouseEvent.MOUSE_MOVE, checkIt);
    }

    function checkIt(evt:MouseEvent):void {}
    If (CONDITIONAL LIMITS OUTSIDE GOES HERE)) {}
    dropIt (evt);
    }
    }

  • Display collection ArrayCollection in a list and the ArrayCollection with Drag and Drop collection reorgnize

    I have an ArrayCollection collection created like this

    qaAC = new ArrayCollection();

    for (var i: int = 0; i < 10; ++ i) {}
    var o: Object = {question: ' what is "+ i +"? ", answer:" it's "+ i"};
    qaAC.addItem (o);
    }

    The ArrayCollection collection is an array of object that has properties "question" and "answer to" custimized.

    I want to put 'issues' in the ArrayCollection collection in a list. 'qaAC.question' does not return an array of questions for me.

    I have to extract the ArrayCollection collection to form a new String table, and use the new array as the dataProvider of the list of questions.

    Is there a way better and clean?

    My goal is to use a list to reorgnize an ArrayCollection collection that contains complex objects (not simple string) with Drag & Drop. Is this possible?

    Any suggestions?

    I put two lists in my example to show how the ArrayCollection collection could be displayed in two different ways. You don't have to have two lists if you do not need them.

    When you change the order of the list made with drag and drop, you change the order of the collection ArrayCollection qaAC, so all the controls that display the qaAC will also be updated to reflect the new order. You can test this in the example I posted earlier. Change the order in the list of question and you will see the order change also in the list of responses. This is because they are both bound to the same collection of ArrayCollection. If you want to behave independently, you need two separate ArrayCollections.

    Chris

  • Prelude, drag and drop from the Finder

    Would be nice if we had the ability to simply drag and drop a file in the dialog box to ingest finder to automatically point to this folder.

    Most mac programs have this feature, but I do not see it in the prelude.

    This would save a lot of time since the workflow that some of us uses have subdirectories after subdirectories which end up hold our images.

    Thoughts?

    Hi Openskies,

    Thanks for the suggestion and raise doubts.

    If I understand correctly, you are browsing the necessary files/folders with finder and then I want to drag-drop to Ingest window and check the files in the capture Panel.

    The same browsing experience is available in the window to ingest itself on the left side. You can browse all the files on your Mac with this and check files for ingest Ingesting/biased.

    Although it will be interesting to see the folders being directly drag after search in the Finder, but overall, it would be more or less even if the navigation is to ingest.

    Again, if you feel strongly about this, please fill the following form with precision:

    Feature request/Bug Report Form

    We would like to improve customer experience with Prelude by incorporating the suggestions, ideas and comments.

    I hope it helps. Continue to write in the case of any confusion.

    Thank you

    Mayjain

  • Questions about the reorganization of the rows in the table by drag-and - drop feature

    I am referring to the demo: 106. Drag-and-drop the reorganization of the rows of the table in aCorner of Code DF to implement my case.

    I am facing some problems:

    1. the view object (bound to the table) is read only and it is created directly by very complex SQL queries, without entity objects. When it is run the code: dragRow.removeAndRetain () in the method: DnDAction processDrop (DropEvent dropEvent), it throws the error so that a guest view object is read-only. I want to know if there is another way to delete the moved collection line?

     public DnDAction processDrop(DropEvent dropEvent) {
    ...       
           CollectionModel collectionModel = (CollectionModel) table.getValue();        
            JUCtrlHierBinding treeBinding = (JUCtrlHierBinding) collectionModel.getWrappedData();
            
            //get access to the ADF iterator binding used by the table and the underlying RowSetIterator.
            //The RowSetIterator allows us to remove and re-instert the dragged row
            DCIteratorBinding departmentsIterator = treeBinding.getDCIteratorBinding();               
            RowSetIterator rsi = departmentsIterator.getRowSetIterator(); 
    
            int indexOfDropRow= rsi.getRangeIndexOf(dropRow);
           //get access to the oracle.jbo.Row instance represneting this table row
           Row dragRow = (ViewRowImpl)table.getRowData(draggedRowKey);
           //remove dragged row from collection so it can be added back
           dragRow.removeAndRetain();
           rsi.insertRowAtRangeIndex(indexOfDropRow, dragRow);
          ...
    }
    

    2. When you click on a button, I need to save the command results in the database using the command update # of each rank. Here it is the handler method for the event of the action (in MB) button.

    I want to use RowSetIterator table for encode it from all ranks and update the value # order of each rank.   I call a data control method to run sql update. is it ok? any suggestion?

        public void processSaveOrder(ActionEvent actionEvent) {
            CollectionModel collectionModel = (CollectionModel) mytable.getValue();        
            JUCtrlHierBinding treeBinding = (JUCtrlHierBinding) collectionModel.getWrappedData();
            
            //get access to the ADF iterator binding used by the table and the underlying RowSetIterator.
            //The RowSetIterator allows us to remove and re-instert the dragged row
            DCIteratorBinding iterator = treeBinding.getDCIteratorBinding();               
            RowSetIterator rsi = iterator.getRowSetIterator();
            Row row =rsi.first();
            System.out.println(0+"="+ row);
            int i = 1;
            while(rsi.hasNext()){
                row = rsi.next();
                System.out.println(i+"="+ row.getKey());
                i++;
            }
    
        }
    

    A workaround solution was found:

    In ADF 12 c, it can be solved by changing Updatable "Always" in the details tab of each attributes to read-only view object without entity object.

Maybe you are looking for

  • HP Pavilion g6-2302ax: query on the recovery of the reduced image

    Previously, I had graphic driver problem but 1 good guy help me here after a few weeks, it back.i decided to make mir I have 2 questions.1 is that he's going to format my others were leaving or just c.2 am I'm going to need support/recovery for mir p

  • Downloads security Microsoft do not install correctly. Failed to close properly.

    Hello. Sometimes Microsoft security downloads do not 'take' or install correctly and the pc (XP3) "crashes." He keeps.  I can leave it overnight and it will not be closed.  So I have to shut down the pc manually, causing a big fall.  How can I ensure

  • 0x0800106ba

    Onthoud - Said is een openbaar due forum private information such as e-mail the telefoonnummers bericht nooit! Ideas Programma u problems encountered Foutberichten Recent p die u have om uw computer Wat I al geprobeerd om het oplossen clean would

  • Dell will offer 10 Windows as a more air move to current customers?

    Hi all... I would just ask Dell if they will keep the customers happy by offering a more upgraded digital air or save location should current customers who would like to do a new installation back to how it was at the time of purchase, BUT with 10 Wi

  • Upgrade in Place attached to the last step

    I'm trying to fix a problem in MS Explorer by an upgrade in Place for my Vista Home Premium 32 - bit with a Vista DVD provided by SM. He went even until the last step and is now hooked to 64% (3 hours). I don't see no choice but to cancel and to expe