Other questions about drag-and - drop and depth

Okay, team

so I know my drag and drop code is probably 'stick' on the mouse event because there is something in front of the object...

I'm trying to implement the numChildren code in order to bring the object moved forward...

SO I add this code inside each movable answer...

addEventListener (MouseEvent.MOUSE_DOWN, changedepth);

function changedepth(event:MouseEvent):void {}

this.parent.setchildIndex (this, this.parent.numChildren - 1).

}

OK so that part is ok, but my project is quite complex, so now when it goes on the next section or there are children who are have not themselves resets...

So now I want to put something like that

addEventListener (MouseEvent.MOUSE_UP, removechild);

function removechild (event. MouseEvent) {}

this.parent.removeChild(-1);

}

but of course this does not... any ideas?

Cheers for your help

Void

You must assign the MOUSE_UP listener on the stage to make him independent object.  If you need to know which object has been moved then store a reference to it in a variable.

In addition, the removeChild() method argument should be a DisplayObject, not a number

Tags: Adobe Animate

Similar Questions

  • Question about Drag and Drop using DataGrid controls

    I use two DataGrids, each has a different type of object so that you can imagine when you drag - move into the other it causes an error in the cause the objects are not the same.
    I already managed to do this work, on the dragDrop event, I stop the default behavior of the event by the preventDefault () method, this way I can convert manually one object in another and then add it to the target of DataGrid.
    The problem is that because I stopped the default behavior of the event that remains the target DataGrid highlighted all the time (focus is on that point), so I have to do after my manual conversion object is to restore the DataGrid control to its normal state, which is what would have made the event's default behavior.

    So any ideas how to do that? restore the DataGrid control in its normal state? or perhaps restore an event so that it can continue its default behavior?

    OK I have found, after calling the preventDefault method and make my own logic, you call the method of the DataGrid hideDropFeedback () and that will do the job

  • About a month ago I posted a question about iMovie and not being able to "share". I solved the problem thanks, so no more emails!

    About a month ago I posted a question about iMovie and not being able to "share". I solved the problem thanks, so no more emails!

    Hi Michael,

    If you want to stop receiving notifications by electronic mail, in the thread, that you have created, then I suggest that you follow the steps below:

    One time connected to the Apple Support communities, visit your mini profile and select manage subscriptions.

    Content

    To manage this content, you are currently subscribed and changing your preferences, select the content.

    Select next to see what content you are currently following.  Note that any thread you are responding you subscribe you automatically to this thread.

    You can select to terminate a subscription to a thread.

    Learn how to manage your subscriptions

    Take care.

  • Question about business and Service of Proxy

    Hi friends,
    I have a question about services and proxy services business IE I need to find the time it takes to call an operation on multipoint business of proxy service, how can I do in oracle service bus (OSB)? You can help quickly

    If your question is only about the performance analysis,
    try to activate the 'monitoring' on the 'operational' of the Service Proxy Service/Company tab.
    For the Proxy Services, if you activate at the level of the 'Action' you get a lot of information about each individual action in a power of attorney.

    See http://www.javamonamour.org/2011/06/osb-profiling-your-proxy-service.html

  • Question about playlists and file nav

    Research in get a rocket, or a variant of the Sansa, b/c I get lazy with the long method involved in duty sync w/iPod songs and their playlists, even with the Zune.

    I have read the manual for the rocket, and it seems that I can just drag and drop the files on the drive. My question is can I make records, as driving music, trance, etc. And then put different songs in every folder and then be able to go into that folder and shuffle the songs in that folder?

    Second issue (assuming that my answer is not), is on the creation of playlist. Looks like I have to do inside WMP playlists and then sync it to the top? Is there another way? I read an old thread on the use of other software to generate the playlist, but my playlist would be basically all the songs in a particular folder (the one I'm talking to the 2nd paragraph).

    Thank you for any input!

    eli2k wrote:

    I have read the manual for the rocket, and it seems that I can just drag and drop the files on the drive. My question is can I make records, as driving music, trance, etc. And then put different songs in every folder and then be able to go into that folder and shuffle the songs in that folder?

    Yes, with the most recent firmware, you can browse and read in folder.

  • Windows 7 starts questions about mac and office 2010 following an installation

    It's a long cut as short as vent. I've been miss sold a record of upgrade of windows 8 full disk-shaped, with norton and office 2010. My goal of creating windows on my mac for a course I'm taking. After that know I need windows 7, I bought it online. I created a partition of 80g on my mac charge windows 7, then norton. Until I loaded the office that I was invited to perform the update from apple in the windows software 7. Note before I installed norton, I load boot camp mac utilities according to the instructions. So, followed by all as should be. The prompt update from apple was quick time, iTunes and airport, I checked all and then updated. Then I loaded office 2010 and obtained throughout the process from the Microsoft site. On the last part of the installation, the installation failed due to a mistake of hanging iTunes. I tried again and again, I fixed the update to iTunes to add and remove the section of windows. Then, I got different errors. I decided to remove the whole score without uninstalling all programs again. When I get to the windows live, that this falls priming. I get various error messages whenever I try to start the process. As a header of Bank pool, fatal error and so on. Can anyone help? What is the damage?

    Hello

    Thanks for posting your query in Microsoft Community.

    Because the question is limited to Windows 7 on your Mac with Boot Camp, I suggest you contact Apple Boot Camp support for assistance.

    http://www.Apple.com/support/Bootcamp/

    I hope it helps. If you have any questions about Windows in the future, please let us know. We will be happy to help you.

  • Question about snapshots and virtual machines

    Hi all

    I have a small question about snapshots. I use VMware for about 6 months and I read about snapshots and how they work but still have a question to make sure that I understand how it works and it will work the way I think it works.

    I have a Windows 2003 server, which is a virtual machine. I have an application that uses MSDE database. I want to upgrade the database to MS SQL 2005, but to do this I need to back up the MSDE database, uninstall MSDE, and then install SQL 2005 and move the SQL database. This happens on the same VM.

    What I was thinking if I well Snapshots correctly is to snap turned the virtual machine before doing anything. Then do my upgrade steps and see if everything works. If its all messed up so I should be able to return to my shot and everything should be the way he had. What is the good? One of the main reasons I moved the server VM was because of this upgrade.

    After reading the documentation for the snapshots, it's how I undestood it. Pretty much any change could be reversed with snapshots. I wish just they had put in a few examples in the PDF file. Also it would be the same for all type of grades of the OS? Could I snapshot a Windows 2000 Server, and then "in the upgrade of the square" to Windows 2003? I've cloned a VM to do this but was curious about whether snapshots would be just as easy.

    Thanks for your help.

    Hello.

    What I was thinking if I well Snapshots correctly is to snap turned the virtual machine before doing anything. Then do my upgrade steps and see if everything works. If its all messed up so I should be able to return to my shot and everything should be the way he had. What is the good?

    That is right.

    After reading the documentation for the snapshots, it's how I undestood it. Pretty much any change could be reversed with snapshots. I wish just they had put in a few examples in the PDF file. Also it would be the same for all type of grades of the OS? Could I snapshot a Windows 2000 Server, and then "in the upgrade of the square" to Windows 2003? I've cloned a VM to do this but was curious about whether snapshots would be just as easy.

    Exactly the same thing for the upgrades of the OS.

    Perhaps the most important thing with the snapshots is to keep an eye on them and don't let them sit too long or become too big.  You have described the use cases are very good uses for snapshots.  Just make sure you have a solid plan with a schedule set, so that you can come back or validate changes before the snapshot becomes too large.

    Good luck!

  • Urgent question about V23 and social sharing

    We publish our first series of questions using the viewer V23. Social, sharing, which worked well in previous numbers across all associated formats, now only works with the iPad made a SD (768 x 1024). HD (2048 x 1536) rendering returns the link to the default URL instead of the online content viewer. Everything is implemented as before except for the fact that the two fact sheets were published in PDF format.

    I took just to watch closer documentation and wonder if I should not only protected items in rendering SD, leaving the protected HD articles. The documentation seems to indicate this, but we have always protected the two renditions before and everything worked fine.

    What Miss me? We are on deadline and need to push another set of "renditions" is out today. Thanks to everyone in advance for any help.

    Steve

    OK, try it now.

    We had a small glitch this week and Social treatment has failed. We have fixed the problem and fix the issues involved including your was a.

    Your should be fixed now. You should be able to only publish PDF issues no problem, so no need for the PNG version.

    If anyone reading this has the same problem. The issues concerned should be fixed by EOD today. The other way to fix it is to simply "Update" the problem in Folio Producer since we deployed a solution of production.

    Steve, you should be good to publish your other question now.

  • Question about CR and LF

    Hey guys,.

    Quick question on LF and CR. As you can see I'm LF and CR of writing to a text file and because directly.

    However, I don't get the CR at the time where I read it. Why is this? Is it because Windows ignores the CR?

    Thank you

    Hi dora,

    read the Help for the WriteText function.

    There is an option for handling of CR/LF characters and explained mentioned in the "Advanced" section of the article for help!

  • Question about scanning and repair of drive (C :)?

    Everyone says that 'analysis and repair disk (c :))' on Windows 8 portable computers means it has not been closed correctly. I have a laptop Asus X501A which of course has Windows 8. When I stopped it, I always stopped him properly, as you're supposed to do. However, earlier this morning, when I logged on what he was doing "scan and repair the disk (c :)). I didn't know what it meant at the time, so I looked on my phone what it meant, and he said it means that always happens due to a bad stop. I thought to myself "How does this affect me? I always turn off my laptop properly. "So I looked for other causes of it, and only it was major changes to a laptop. Since I got this laptop, I did not really have major changes, so I thought it was strange. When you "scan and repair the disk (c :)) ', he got stuck on 35% completed for a long time, until he went to 100% full and restarted my laptop.

    Why my laptop have analyze and repair my drive (C :)?

    Hello

    Please see after correction upward to solve this problem:

    http://www.kapilarya.com/weird-scanning-repairing-of-drives

    Hope this helps, good luck :)

  • Simple questions about drag liberation movements.

    Hello

    I looked for some time, but I wasn't able to understand everything that I need.

    In short, I want to have a simple Drag and Drop.
    I don't want to move the data, I just want to have a node (source) to interact with another node (target). Each funky stuff like change the color or change mouse cursors when I go on potential targets are not important for now.
    I want just a beginning 'drag', a 'drop' and a 'dragdone '.
    Rendering, it is the start of the trail and the part of the drop.

    I used the setOnDragDetected function, which works very well and decided to startFullDrag() from the API seems to me, that is the right way.
    this.setOnDragDetected(new EventHandler<MouseEvent>()
            {
                @Override
                public void handle(MouseEvent p_Event)
                {
                    System.out.println("DragDetect");
                    startFullDrag(); 
                    p_Event.consume();
    As it seems to activate or maybe switch the DragEvents to MouseDragEvents - I used setOnMouseDragReleased to activate a reaction on a 'drop' (or a 'drag version') with success.
    this.setOnMouseDragReleased(new EventHandler<MouseDragEvent>()
            {
                @Override
                public void handle(MouseDragEvent p_MDEvent)
                {
                    System.out.println("DragRelease");
                    p_MDEvent.consume();
                    
                }
            });
    But I want to change something about the source, although I have the drag (grayish color, perhaps) and he had to find, when the brake is completed.
    For the DataDrags, it is possible with "OnDragDone" which seems to be enabled for the source. Exactly what I want, as it seems.
    It does not somehow for my knots.

    They Interact with nodes form the same base class, so that each would catch any event, which would be activated, but no node has given me an exit. I tried each recipient event that seemed remotely appropriate.
    I don't want some Drag Queens 'half-alive' or anything like that. I'd really like to be able to react at the end of a drag.

    I would be really grateful if you can help me with this problem.

    TL; Dr:
    Drag-and - release from one node to another works, but I can't get an event that informs the node that the drag is finished. So I may not remove changes to the interface, I did to make the clear source as the "source".

    Published by: Anro on 12.11.2012 04:43

    This tutorial covers what you need: http://docs.oracle.com/javafx/2/drag_drop/jfxpub-drag_drop.htm

    For your "done drag" was not based on the source, I think that you must invoke
    setDropCompleted (true)
    on the event drag to make this happen.

    If you want something like

    target.setOnDragDropped(new EventHandler() {
      public void handle(DragEvent event) {
        // process end of drag on target
        ...
        // Now inform the drag event that everything's complete:
        event.setDropCompleted(true);
      }
    };
    
    source.setOnDragDone(...);
    
  • Question about Java and other concerns

    It was in the original thread Java, decided that it should be easier in the separate thread.

    A simple uninstall will get rid of Java, or leftovers to stick around. After picking up the Live safety scanner fake Trojan or whatever it is, I did some scans online in addition to MMFA, who got rid of him in a quick scan and SAS, and Windows Defender. You don't know if AntiVir would be cleaned, but MBAM it in the short term. Thought I was clicking on a secure link, but I learned enough here to start in Safe Mode, run MBAM, and WD of Tower and Windows Security Center and return to normal. Somewhere along the line, I received a few Java mentioned error messages. Think that I tried to download ot and run an online scan, but can't remember for sure.

    Moreover, somewhere I took advice of Prime Minister, which seems to be a malicious ad-ware and pest stealing information data. I deleted the program. It does not appear on all analysis, but there is an entry in WinPatrol in Services, where it shows up as being disabled. He also appears in the Services in Task Manager, where it shows stopped. Don't know what I can do to get rid of it completely or if it anything wrong at this point, if it is disabled.

    Dale,

    even if java uninstaller leaves behind some errant registry entries, I don't know that it's worth trying to go after them.   [For example, I found a Web page since java itself which talks about how to change the registry in case"Java icon is still visible in the Panel hasthat almost have Java is uninstalled".   [I have purposely not cited this link here, because I don't recommend editing the registry and don't want to be responsible for all the problems if they try to do.]

    ---------------------------------------------------------------------------------------------------------

    "I've learned enough here to start in Safe Mode, run MBAM, and...". »

    Note that MBAM is designed to run in NORMAL mode, in order to be able to find and conquer the malware that is resident / operation of the system RAM.   (By starting in safe mode, this malicious program does not work often and if MBAM won't find it in memory).   In fact, the only time where we should try to launch WHAT MBAM in safe mode is when he is unable to run in normal mode.   And now, with MBAM Chameleon, it is even less likely that MBAM will be prevented from running normally.

    In this sense, MBAM takes a very different from other security programs philosophy, that often MAKE application users run in safe mode.

    And as you have seen, MBAM focuses on 'rogue' malware that other products do not detect or do not remove properly.   For a person to "do-it-yourself", it should be the first scanner that you run when it encounters a thief.   [Of course, to "do it yourself", you can only exacerbate existing problems... so you must proceed with caution.]

    -----------------------------------------------------------------------------------------------------------

    Somewhere along the line, I received a few Java mentioned error messages.

    Was it a message 'error', that Java was "defective"?   Or was it just a notice that you visited a java requiring site, which he could not find (active) on your system?

    -------------------------------------------------------------------------------------------------------------

    Regarding the Premier's Opinion, I would be concerned that "it also appears in the Services in Manager tasks, where it shows stopped.   [I am less concerned with what appears as 'disabled' in respect of the services of WinPatrol, as sometimes, after deleting a program or a service, it may still appear as a service disabled in WinPatrol.   But in this case, WinPatrol should indicate that the (local) file is not found.]

    But as I am not familiar with this particular program, you can either wait Bugbatter you answer here, to see what she suggests... or if you're in a hurry, you can follow the instructions at http://www.spywareinfoforum.com/index.php?showtopic=79038 to sign up and post the logs requested to SpywareInfoForum.com; There are experts here AIDS that can 'walk you through' procedures to analyze your system and clean the infection.   Any help provided that it is FREE.   If you decide to go to help them, please wait for a response, and do NOT attempt to perform any other scans to remove yourself – do exactly as they ask you to do, no more, no less.  

     
  • Adobe Flash and other questions about Flash crashes

    There are several cases of Adobe Flash crashes if I use Firefox, IE or Google Chrome - browsers and simply reload the page corrects this BUT repeats again and again.

    I am running Windows 8.1 64 bit in which the Flash program comes apparently integrated in the operating system as a hybrid 32/64 bit. When I inspect the add-on version Flash in Firefox, and an audit of the update, Adobe points out, correctly, that my system is 64 bit, English, Firefox Windows. Then when I do the same thing in Windows Internet Explorer, by checking the version shipped, I get a message that KB2999249 is available as a download fix Flash problems in Internet Explorer. Since this installation, the Flash has collapsed in IE [yet].

    So my question is: How can I be certain that when Firefox reports that Flash is "day" that he is indeed a version 64 bit compatible? Note that the download from Adobe site identifies only one version available for Firefox, IE and Google - the current version is the 15.0.0.152 file: NPSWF32_15_0_0_152.
    The "32" in the file name part suggests that it is a 32-bit application and, if so, where can I find NPSWF64_15_o_o_152 [if exists]?

    edited the title of this thread to reflect questions

    I check my addition of the Manager of ons regularly, even obsessive. I still have the last flash.

  • a few questions about RMAN and others.

    Hello

    I have a few doubts and needs some clarification to clear my doubts... Thanks in advance

    can data be copied to a db tell another db say B, if A is running on Windows 32 bit OS and db B is on Solaris 64 bit

    can I have a primary on 10.2.0.4 and physical database pending for this db on 11g?

    I know RMAN can exclude tablespace but can we exclude tables as in dataguard table_name %... I know that we cannot just simply wanted to confirm

    Can I restore a specific tablespace of PROD to test?

    I passed TEST db and have added PROD and additional data files, how to change TEST without recreating the entire db

    can data be copied to a db tell another db say B, if A is running on Windows 32 bit OS and db B is on Solaris 64 bit

    You mean datafile or data?

    Data can be moved and also you can use cross-platform tablespace option

    http://www.Oracle.com/technology/deploy/availability/htdocs/xtts.htm

    can I have a primary on 10.2.0.4 and physical database pending for this db on 11g?

    NO.

    http://download.Oracle.com/docs/CD/B19306_01/server.102/b14239/standby.htm

    Can I restore a specific tablespace of PROD to test?

    No, you can't

    I passed TEST db and have added PROD and additional data files, how to change TEST without recreating the entire db

    Peut tunderstand

  • Question about MEMORY_TARGET and MEMORY_MAX_TARGET and EM

    Good evening

    After a lot of reading and research on Google and ask Tom (and Jerry too!) and visit a multitude of websites, I still do not understand the exact scope of MEMORY_TARGET and MEMORY_MAX_TARGET. I would be very grateful to represent a clearexplanation and sensible, verifiable and technically correct as to what these two parameters and how they interact with each other, and why two different parameters are needed instead of one.

    The more clear statement, that I found so far is:

    Of [Oracle frequently asked Questions Wiki | http://www.orafaq.com/wiki/Memory_target]

    >
    MEMORY_TARGET stipulates the following:

    A single parameter for total size SGA and PGA
    < li > automatically resizes the SGA and PGA components
    < li > memory is transferred to the more need
    < li > uses workload information
    < li > uses internal advisory predictions
    < li > can be by DBCA at the time of the creation of the database.
    >

    This seems quite reasonable, but given that MEMORY_TARGET includes the SGA and PGA size, which would be necessary MEMORY_MAX_TARGET for? How did the memory represented by MEMORY_MAX_TARGET - MEMORY_TARGET used by Oracle? It is simply wasted? (Note: the maximum value of MEMORY_TARGET should, wisely, be lower or equal to MEMORY_MAX_TARGET)

    From the different point of view, when a database is created, we can take away from the o/s, a number X of GBs and drop it to Oracle by setting the MEMORY_MAX_TARGET parameter. Why Oracle not use all (by definition of a value of less than MEMORY_MAX_TARGET MEMORY_TARGET)? that said MEMORY_TARGET Oracle that doesn't MEMORY_MAX_TARGET (or vice versa)?

    Why would anyone want to define MEMORY_TARGET as inferior to MEMORY_MAX_TARGET?

    I appreciate a lot any help to clarify the issues above.

    Thank you very much

    John.

    I could not find the document that says that. Where did you find this statement? I ask because it would be nice if the document gave few details about how it is used on Unix.

    Here's the link:

    http://download.Oracle.com/docs/CD/B28359_01/server.111/b32009/tuning.htm#BABBJHAC

    HTH
    Girish Sharma

Maybe you are looking for

  • Error - there is a problem with the external Setup program and it must be closed when you try to install windows updates

    Original title: How can I fix external MSI? When I try to download the updates, the error message says there is a problem with the external Setup program and it must be closed.  Updates will not be installed.  Anyone know how to solve this problem...

  • Contrast of colors in Windows Vista Mail

    In Windows Mail in Vista 32, my mother has problems, see the tab scrolling - it shows as a little white square on white right scroll bar. It does not change to a blue color until the cursor is on top of it. The lack of contrast between the scroll but

  • Cannot open BIOS after installing HP ProtectTools

    Hi all! I installed HP ProtectTools on a HP ProBook 450 G0 and after that I can't open the BIOS settings. The gel sceen after pressing the F10 key. Also starting is not possible. If I press (very early) Esc key and "F7 for spare key" I can connect wi

  • Files corrupt/blue screen

    I have an old laptop 900 persario (906US) and it works most of the time, but I get the dreaded blue screen that says I have a corrupted file. I lost my recovery disc and that you want to know if I can download a recovery disc on my desk to use on my

  • Values of combination using substr

    Hi team,I have the script below to get all combinations of values of position to end the starting positionThe format of the input string can be "AB CD" or "ABCD". Start FOR SELECT fir "AB CD" NM FROM DUAL LOOP S IN 1.length (fir.nm) LOOP dbms_output.