How can I make a drag and drop movie clip to disappear when it's dragged in a specific area?

  I have a movie clip that also has the function to duplicate. What I want is that if the user dosent want so many duplicates, to have an area where if he drags the duplicates, they will disappear.  Thank you.

I've search on google but I did not found any tutorial for this particular thing. I found instead this code : 
on (press) {     startDrag ("", false);   
this.swapDepths(_global.depth++);
on (release, releaseOutside)
stopDrag ();   
this.swapDepths(_global.depth++);   
if (this._x > 493.250000 && this._x < 636.050000 && this._y > 142.900000 && this._y < 271.350000)   
   this.removeMovieClip();   
    } // end if
but I don't know how to make the _x/_y to work, better said I changed  the values but nothing happend, did I did something wrong ? The first _x/_y stands for the position? I've played with the range values but cant seem to make it happend.

Similar Messages

  • Drag and Drop Movie Clips onto Plugin

    Hi All,
    We've built a plugin for Adobe Flash CS5.5, with a tree control in the plugin.
    We wish to be able to drag and drop movie clips from the canvas onto the plugin. Wondering if anyone could point me in the right direction?
    regards,
    -amit

    Hi,
    If you are developing the plugin in Flash, have you tried to listen to NativeDragEvent.NATIVE_DRAG_ENTER and NativeDragEvent.NATIVE_DRAG_DROP ?
    Once the plugin behaves like an AIR Application, you should have access to its API.
    I hope it helps !

  • How to add a code so my drag and drop movie clip will not stick  once it is dragged to final place o

    Hello all and kglad, I have to use the old drag and drop code on my movie clips, but the problem is when I drag the movieclip to the area on my .swf file once i release it, it sticks to the hand mover.
    I am encloseing the action script I am using could someone or kglad tell me what is missing from the code so that once it is released it will not stick, see code below
    circle.onPress = function(){
    startDrag(this);
    circle.onRelease = function(){
    stopDrag();
    I am desparate for help on this must get project ready for this afternoon
    Seal55

    there's nothing wrong with that code but it would be better to use:
    circle.onPress = function(){
    this.startDrag();
    circle.onRelease = function(){
    this.stopDrag();
    but that won't solve your problem.  there must be something else going on like a depth issue.  you may need to use swapDepths() to bring your circle under the mouse when releasing.

  • Drag and Drop not working - symbol disappears when I try to drag

    I have a large animation I am making in Edge Animate, and have already used the draggable jquery plugin several times. However yesterday I made a new symbol for a separate animation, and then added elements and turned them into symbols, and added the following code to the symbol timeline on creationComplete:
    sym.$("milk-s").draggable();
    I have tried it with several different symbols, but each time I check it in a browser, I click on the symbol to drag and it disappears instead. I can't understand what I'm doing wrong, as that is all the code in the timeline actions, and I'm sure there's no code on the symbols I want to drag. I have also copied and pasted the code from draggable symbols that work, and changed the name, as they have slightly more code on for when you start dragging the symbol.
    Thanks in advance!

    Not sure what I did wrong before, but it's working now! Although it's not doing the next thing I want it to do now. Here's the code I have:
    sym.$('drink-can-s').draggable({ revert: 'invalid' });
    sym.$("milk-s").draggable({ revert: 'invalid' });
    sym.$("tin-can-s").draggable({ revert: 'invalid' });
    sym.$("green-bottle-s").draggable({ revert: 'invalid' });
    sym.$("box-s").draggable({ revert: 'invalid' });
    sym.$("eggshells-s").draggable({ revert: 'invalid' });
    sym.$("apple-s").draggable({ revert: 'invalid' });
    sym.$("carrots-s").draggable({ revert: 'invalid' });
    sym.$("banana-s").draggable({ revert: 'invalid' });
    sym.$('compost').droppable({
    accept:sym.$("banana-s"),
    accept:sym.$("apple-s"),
    accept:sym.$("eggshells-s"),
    accept:sym.$("carrots-s"),
    sym.$('recycle-drag').droppable({
    accept:sym.$("drink-can-s"),
    accept:sym.$("milk-s"),
    accept:sym.$("tin-can-s"),
    accept:sym.$("green-bottle-s"),
    accept:sym.$("box-s"),
    There are several draggable symbols and two droppable symbols, each draggable symbol can be put into one droppable symbol, and I want the draggable symbol to go back to it's original position if it is dragged anywhere but the correct droppable symbol. I have used revert: 'invalid' for this, but all of the draggable symbols spring back to their original position, but a bit lower down, even when dropped onto the correct droppable symbol, except "carrots-s", which isn't affected by revert: 'invalid'. Any idea what's happening?

  • I can't drag and drop movies from my hard drive onto my iPad.

    I just recently upgraded from an iPad to an iPad 2. I still have the old iPad. I have no problem dragging and dropping movies and TV shows from my external hard drive onto my old iPad, but I can't seem to do it with the iPad 2. It syncs movies and TV shows from iTunes, but I don't want to have to load everything into iTunes just to get it onto my iPad. Again, no problems doing it with the old iPad. Any suggestions? Thanks in advance.

    No I didn't - checked it, and now it works! I guess I forgot about setting that feature up when I got my first iPad. Thanks Allan!

  • How can I make the rolumn and row headers appear on the printed sheet?

    I am working in Numbers'09. I want to print out my chart with the column letters and row numbers showing.
    How can I make the rolumn and row headers appear on the printed sheet?

    g,
    Those annotations are called "Labels", and they are only visible during editing when a cell selection is made within the table. If you need to have the labels on your final output, you can create labels in Text Boxes and position them adjacent to the table.
    Jerry

  • How can I make photos Black and White?

    I took a few pics using photo booth on my mac. How can I make them black and white after the picture was already taken? Thanks! (I have the most updated OS X)

    Go into iPhoto's edit mode and click on the Effects button at the top.  Then select the B/W option in those that are listed.
    OT

  • Why cant i drag and drop movies into itunes?

    why cant i drag and drop movies into itunes?

    To make it display on the desktop, Finder > Preferences > General tab > check external disks.
    The drive might be formatted NTFS for Windows which is treated as read-only on the Mac.  Need to reformat it using disk utility.

  • How do you drag and drop/move multiple emails from the inbox or mail archive folder to a file folder in your finder?

    I would like to archive hundreds of my emails that currently exist in my apple mail email filing system by moving them into file folders in the finder. I can do this easily with a single email but it wont let me do it with multiple emails or a complete folder. Is there any way of do this easily?

    Thanks very much for this. However, I understand how dragging and dropping files normally works. It just seems the it wont work when you do it with emails when you are transfering them into a normal finder system folder. If you highlight one file and drag it to a finder folder it works, but when you drag multiple, it just wont let you do it.
    Is there any work around for this? Thank you once again for  your time.

  • How to display xy coordintes of drag and drop movie

    can someone tell me how to display the coordinates of the red
    cirle shown in the drag and drop tutorial found here:
    http://www.flashvalley.com/fv_tutorials/advanced_drag_and_drop_in_Flash/
    I have done this tutorial just fine but dont know how to
    display its x and y coordinatetes in a dynamic text box as i move
    the red circle around the screen.
    thank you for any assistance you may give.
    steve

    Hi kglad,
    I dont suppose you could show me how to create the loop? My
    own research seems to indicate the onEnterFrame method would be
    easiest.
    I am just a beginner and even this is still beyond me.
    thanks

  • Can't Drag and Drop movies onto iPod

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

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

  • When I print a webpage from FF how can I make the text and images bigger?

    I am trying to print an eticket for a flight. The text on the schedule comes out too small and the UPC symbol's black lines look ganged together. I know I can view it zoomed up, but how do I make the text and images stay zoomed so they will print out that way?

    I upgraded but the problem remains. At least with Firefox I do have the option to print a selection even if it mangles the top and bottom lines. With Safari or Chrome I have no option to print a selection. At the moment the only way to get a complete copy of the selection is to copy to openoffice etc and print from there.

  • How can i make custom login  and priviliges pages  depend on database ?

        Hi all,
       how can i make custom login page and custom security pages depend on oracle database tables.

    User, please tell us your Jdev version!
    Have you used the search field in the forum?
    This had been asked a couple of times.
    http://biemond.blogspot.in/2008/12/using-database-tables-as-authentication.html and
    http://biemond.blogspot.in/2008/12/using-weblogic-provider-as.html
    Timo

  • How do I put music I have uploaded from a CD onto my iphone 5 via itunes? I have tried to drag and drop it onto my iphone when my phone is plugged into itunes this does not seem to be working.... Getting annoyed!!!

    I cant seem to get cd's that I have uploaded onto my iphone 5 via itunes. I have tried to highlight the items and drag and drop them into my phone but this isnt working...; This is really starting to frusterate me!!!
    Please help me

    If you have not already reverted the look and feel to be like iTunes 10 then
    View > Show Sidebar
    View > Show Statusbar
    click on the black arrow in the search box and untick Search Entire Library
    Now you should be able to drag and drop onto your phone or use the sync pages
    http://support.apple.com/kb/PH12113
    If your still having issues with your phone then Try this trouble shooting link
    http://support.apple.com/kb/TS1591

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

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

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

Maybe you are looking for

  • How to get all files from Archive server

    Hi Experts, My problem is: When i try to read from an archived file, the moment archive_open_for_read function module is executed, a popup box appears asking to choose the name of the archive file to be read. I have to pass only one Export Parameter

  • MERGE AGAIN????? PLZ Somebody HELP ME!!!!!

    Hello everyone! I am so angry because of the merge statement!!!!! No one can't tell me what I have to do???? Guys!!!! I am trying to de a trigger on a TableA that fire when I try to insert data, the trigger the only thing have to do is insert the sam

  • Info about Listener for oracle 10g and 11g installed on single systm

    Hi, I have installed oracle 10g n 11g on my system. I have question regarding oracle listener. oracle 10g , Listener.ora LISTENER = (DESCRIPTION_LIST = (DESCRIPTION = (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1)) (ADDRESS = (PROTOCOL = TCP)(HOST = kan

  • WL 8.1: Configuring a document root for multiple web applcations in a domain

    Subject: Application - document root I am using the Apache web server with the BEA proxy plug-in. All requests to the apache server are proxied to WebLogic. http://localhost/wip-gl/xxx.jsp?param1... http://localhost/wip-am/xxx.jsp?param1... http://lo

  • Business Graphics for Java

    Hi, What are the java API supported for Business Graphics? I find a few on java but on [ABAP|http://help.sap.com/saphelp_nw04/helpdata/en/45/644c3e873e2f95e10000000a155369/content.htm] the support is richer. - Nikhil