AS2 Drag and Drop - completion response

I do a drag and drop alphabet learning game. There are 27 Movie Clips (letters) in total that are able to drag.  I made sure 12 Movie clips will drop in a specific DropZone, while the rest will just snap back to their original position.

I want to do is create a completion response which moves to a separate screen 'Good Job!' when all 12 Movie Clips have been droped in the DropZone.  How can I do this?  I searched online for more help, but nothing seems to be particularly relevant.

Thank you!

Avoid putting code "on the" points at all costs... you will learn a bad habit if you start to do that.

What you have would be something like the following.  I don't know if this code refers to the 12 pieces that you mention, but I hope you can see the logic and apply for them.

var dropCount = 0;

{food1_mc.onRelease = food1_mc.onReleaseOutside = Function ()}

stopDrag();

If (this ._droptarget == ' / DropZone4 ') {}

this.onTarget = true;

_root. DropZone4.gotoAndStop (2);

dropCount += 1;  Add 1 to dropCount

if(dropCount == 12) {}

gotoAndStop ("goodjob");  go to the section called goodjob

}

} else {}

this.onTarget = false;

_root. DropZone4.gotoAndStop (1)

}

}

Tags: Adobe Animate

Similar Questions

  • AS2 drag and drop a hidden content of video for loadMovie

    In the main content, when I have a clip like this a1.a2.a3 all in a3 within a2 and a2 within the a1 and a2 is a clip of masked layer.

    I can drag and drop the hidden content (while still remain a1) with like this a1.a2.onPress = function () {startDrag (this) ;}  and a1.a2.onRelease = function () {stopDrag() ;}

    but then what I need is a1 stay in the main content, while a2.a3 moved to an external .swf and use loadMovie to call les.swf (a2.a3) into a1, and I can still drag and drop a2.a3 when a1 is still.

    I tried the differetn methods they just does not work.  I've learned that you need to create an another MC inside the a1 as this a1.a4.a2.a3 (while loadMovie clip a2.a3). It works only if I want to drag a1. But if I want to drag hidden content a2.a3 that it still does not work.

    I really need help, this is a project for work.

    Once the upload is complete, apply your code drag to a1.a4, target load containing a2 and his children (after the loading is completed).

  • CP 7 - only return incorrect drag and drop answers

    Product: Captivate 7

    Feature: Drag and Drop

    When you click on submit, is there a way for CP 7 to return only incorrect drag and drop of responses to their starting position?

    The following two positions was asked the same thing, but no one has had a chance to respond.

    http://Captivate.Adobe.com/Captivate/topics/drag_and_drop_send_back_incorrect_answers_only

    http://forums.Adobe.com/thread/1280177

    Thank you!

    Micky

    I don't think it's possible to reset after clicking on the "submit" button. (May be it is possible using advanced actions).

    However, you can set the target to reject the wrong answer, the incorrect source of the moment is placed on it. Select the target, choose accordion Drop Target, click on accept, deselect the checkboxes against unacceptable options.

    Anthony

  • Drag and Drop issue

    Hi all

    I am creating a flash animation where the user can click and drag the ingredients around a kitchen, following a recipe to make a meal.

    In the situation that I'm working now, several ingredients should be dragged into a frying pan, and then a Timer (timer) counting down a specific time to cook these ingredients.

    Flash allows me to drop a number of ingredients (video clips) in a frying pan (video clip), with all the undesirable ingredients returned to their starting positions and have the knowledge to start a timer when we know that these ingredients have been added? (regardless of the order they are added)

    Thanks in advance

    Paul

    Yes, the Flash can be coded to handle things in the way you describe.

    Manages the correct things placement normally is to check the property _droptarget object that was abandoned, but in your case, if it involves removing objects that should not be moved, then you would need to a bit more simple logic that keeps track of which should be deleted however not a given recipe...

    You should try Google search using terms like "AS2 drag and drop tutorial" to find something to help you get started.

  • Drag and Drop - response schema complex

    Hi guys out there.

    I've set up interaction drag-and - drop, who's looking good, but I can't Captivate to recognize the answers correctly. Please could you help?

    I have three sets of slide sources one (2), B | (7 sources) and C (7 Sources).

    I have two boxes X and Y.

    I want has to be deleted only in X

    I would like to B to be deleted only in Y.

    I want that C had to be abandoned in X or Y - or the other is a good answer.

    For some reason, Captivate is never correctly mark the answers. I suspect it is the sources of drag 'C' the origin of the problem, but I'm not sure.

    Can you advise how I should set up correctly?

    Here is a link to the output: http://blendedlanguagelearning.com/portfolio/Test/10Sept2014/TestOnly.htm

    I can provide the source files if needed, but they are great.

    Thank you very much!


    Seth

    Well, I think I have a solution feasible for you, if it'll take a bit of tedious configuration. I'll assume that you are familiar with the Types of Interaction, or watch this video (http://youtu.be/B_wVtH1Vsck?list=UULpsk3UF7lh5l9fVkLIqu6g) because they are essential to keep this manageable configuration.

    In short, you put each set of sources in his own Type of Interaction and then create a combination of answers separate for each of the 8 possible indictments of category C.

    If there is a more simple or more elegant solution, I can't think about it right now. Maybe someone else can, but this will produce the functionality you're looking for, I think.

    (1) name your drop targets in the property inspector. I used Drop_X and Drop_Y in the screenshot below.

    (2) select your category 'A' Sources of drag. On the Drag and Drop tab, click on the button + to create a new type of interaction. Name the type of something easy to distinguish (I used "InteractionType_A).

    (3) repeat step 2 for your category 'B' and 'C' Sources of drag, so each has it's own unique Interaction of its kind.

    (4) Begin defining the right answers. I began by assigning A-> X, B-> Y and C-> X. You can see on the left side of the screenshot below.

    (5) now the difficult part. Click on the button «Set Correct answers...» ». You should see a "Answer1" just like mine in the screenshot below, but with two target Drop names and names of all Type of Interaction you have used instead.

    6) click on the 'Add a new reply' button at the bottom of the window. You should now see a Virgin "answer2" below your "Answer1".

    7A) make your "answer2" look just like mine. The first two lines will always be the same, (target Drop = X, drag Source = A, Count = 2) and (target Drop = Y, drag Source = B, Count = 7). Unfortunately there is no copy and paste or duplicate function here so you'll have to implement from scratch every time. You also need to click on the + to add the fourth line.

    7 (b) the only thing that will change for each new answer you add will be the 'Count' on lines 3 and 4. Start with (Count = 6), and (Count = 1) and adjust the number by 1 for each new answer, making sure they always add up to 7. (5, 3 4, 3 4, 2 5, 6 1, 2and 0 7).  When you are finished, you should have 8 combinations of single response and a strong desire to never touch another drag and drop interaction.

    I hope that all makes sense. Good luck!

  • Drag and drop on the AS2 grid

    I want to create a grid where I drag and fall to her points n Save, do I pull the rack forward myself and do a lot of media (as if I had to do an inventory?) or is there a code I can use.

    I'm quite fine with as2, but I never took the time to really get into the tables. I come up with my own solutions, but I want to do it the good sense.

    for the generation of ex.sims mode.

    anyone interested to help me with my game also?  Doesn't hurt to ask.

    who does not resemble a drag and drop.

    But if you want to attach something to a clicked cell, do it.  Flash will know which cell was clicked the same way, he knows which button in a list of several buttons were clicked:

    for (var i: Number = 0; i<>

    for (var j: Number = 0; j<>

    var mc:MovieClip=this.attachMovie("cell_mc","cell_"+j+"_"i,this.nextHighestDepth());

    mc.colNum = j;

    mc.rowNum = i;

    MC._x = j * mc._width;

    MC._y = i * mc._height;

    {mc.onRelease = function ()}

    No matter what

    }

    }

    }

  • Drag and Drop Game - AS2

    Hello

    I do a drag and drop game for young children. The child must put the plant proper parts for example of the stem in the right place.

    I did the coding for it, but there is no result, the child can easily just put the wrong party at the wrong place and nothing will happen.

    How will I be able to provide a result informing the child if it is in the right place or not?

    Thank you

    This is normally down to assess what the object is deleted, what can be done using the _dropTarget property.  "Try Google search using terms such as"AS2 _dropTarget tutorial"or AS2 Dran and Drop tutorial" and you should be able to find examples explaining how it's done.

  • Drag and drop with a Flash response... Help, please

    Hello

    I just started with flash and actionscript3 about 5 weeks ago. I am in my first year uni and I have an assignment to slide / move (for a kindergarten class). His "little red hen" and they place the correct image to the right holder.

    I got drag and drop work but I can't seem to find a way display a check mark when they place in the correct holder.

    Help, please...

    It's my script (it may seem messy... still new)

    import flash.events.MouseEvent;

    / * Mouse event that ensures the function of hen movieclip to start dragging
    When the mouse is pressed * /.

    hen1_mc.addEventListener (MouseEvent.MOUSE_DOWN, opportunity);
    hen2_mc.addEventListener (MouseEvent.MOUSE_DOWN, opportunity);
    hen3_mc.addEventListener (MouseEvent.MOUSE_DOWN, opportunity);
    hen4_mc.addEventListener (MouseEvent.MOUSE_DOWN, opportunity);
    hen5_mc.addEventListener (MouseEvent.MOUSE_DOWN, opportunity);
    hen6_mc.addEventListener (MouseEvent.MOUSE_DOWN, opportunity);


    Ability to function (event: MouseEvent): void
    {
    event.target.startDrag ();
    }

    / * Mouse event that ensures the function of hen movieclip to drop
    When the mouse button is released with Condition statement, if
    owner = hen, hen snaps into place * /.

    hen1_mc.addEventListener (MouseEvent.MOUSE_UP, dragStop1);
    function dragStop1 (event: MouseEvent): void
    {
    hen1_mc.stopDrag ();
    If (hen1_mc.hitTestObject (holder1_mc) is true)

    {
    hen1_mc.x = holder1_mc.x;
    hen1_mc.y = holder1_mc.y;
    }
    }


    hen2_mc.addEventListener (MouseEvent.MOUSE_UP, dragStop2);
    function dragStop2 (event: MouseEvent): void
    {
    hen2_mc.stopDrag ();
    If (hen2_mc.hitTestObject (holder2_mc) == true)
    {
    hen2_mc.x = holder2_mc.x;
    hen2_mc.y = holder2_mc.y;
    }
    }


    hen3_mc.addEventListener (MouseEvent.MOUSE_UP, dragStop3);
    function dragStop3 (event: MouseEvent): void
    {
    hen3_mc.stopDrag ();
    If (hen3_mc.hitTestObject (holder3_mc) == true)
    {
    hen3_mc.x = holder3_mc.x;
    hen3_mc.y = holder3_mc.y;
    }
    }

    hen4_mc.addEventListener (MouseEvent.MOUSE_UP, dragStop4);
    function dragStop4 (event: MouseEvent): void
    {
    hen4_mc.stopDrag ();
    If (hen4_mc, hitTestObject (holder4_mc) is true)
    {
    hen4_mc.x = holder4_mc.x;
    hen4_mc.y = holder4_mc.y;
    }
    }

    hen5_mc.addEventListener (MouseEvent.MOUSE_UP, dragStop5);
    function dragStop5 (event: MouseEvent): void
    {
    hen5_mc.stopDrag ();
    If (hen5_mc.hitTestObject (holder5_mc) == true)
    {
    hen5_mc.x = holder5_mc.x;
    hen5_mc.y = holder5_mc.y;
    }
    }

    hen6_mc.addEventListener (MouseEvent.MOUSE_UP, dragStop6);
    function dragStop6 (event: MouseEvent): void
    {
    hen6_mc.stopDrag ();
    If (hen6_mc.hitTestObject (holder6_mc) == true)
    {
    hen6_mc.x = holder6_mc.x;
    hen6_mc.y = holder6_mc.y;
    }
    }

    You alreadsy have conditional statements in place as far as I can tell, you just need to add the ActionScript to display the tick...

    function dragStop1 (event: MouseEvent): void

    {

    hen1_mc.stopDrag ();

    If (hen1_mc.hitTestObject (holder1_mc))

    {

    hen1_mc.x = holder1_mc.x;

    hen1_mc.y = holder1_mc.y;

    View the tick code goes here

    }

    }

  • Drag and Drop CS4

    Hello

    Does anyone know a good tutorial for drag and drop style quizzes? I was able to truly create the drag and drop, but I need for a quiz (as test models are no longer available after CS3) so need to indicate to the user, if they are correct or not is a word drag an image and then click on a button that says that if its correct or not, or something similar.

    Thank you

    Usage: inter.buttonMode = true;  hand to get the cursor to appear

    AS2 and AS3 with some exceptions to the basic commands (play(), stop(), etc.) are completely different programming languages and cannot be combined in the same fla.

  • How to move several JPEGs from one file to another not to drag and drop.

    I'm a prolific snapper and need to move from an intermediate file jpeg images to a monthly file without the risks of drag and drop. Anything involving pictures would be useful.

    Copy / paste? What dangers drag and drop represent them?

    Your question is vague. Is it a complete folder of images? Or a selection from a folder of images?

    Some possibilities: Automator, Hazel, AppleScript, you can do even in applications like Lightroom if you wish.

    But hard to advise without some details.

  • All drag and drop functionality stopped working in Firefox 16 / Firefox 16.0.2

    Note that when it stopped working exactly but all drag and drop functionality work more... images, URLS, tabs... you name it. I was on 16 FF and upgraded to 16.0.2 without help. SafeMode... same behavior. Disable each add-on single and plugin... same thing again. using the default theme.

    What's left to try?

    I am running Windows XP SP3.

    A complete remission to zero of the system got things working again for me. Not ideal, but I'll take it for now.

  • 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 on the same disk, same partition hours. Why and how to fix it?

    Hello

    My computer crashed and I put the files saved on the disk. Slide it / move files adobe is 500 GB and taken a few hours to complete. Drag and Drop that into a subfolder in this directory, the system tells me that it will take even more time to copy. Why? What it means.

    Two things you need to know:

    (1) the system hangs usually about all six months requiring a clean install.

    (2) this time I portioned disk, put the operating system on the partition of 500 GB and put the data files on the other half of the partition to see what happens the next time it crashes - and it will eventually crash. (I want to know if everything is damaged remains on the side with the operating system or if it affects the entire drive.)

    All other files seem to drag / move very well, it is precisely those specific files of photographs. Any suggestions? This allusion to a problem not diagnosed with the disc? Is it because I partitioned the HD?

    Thank you

    Mac (27 inches, at the end of 2013)

    3.5 GHz Intel Core i7

    32 GB 1600 MHz DDR3

    10.11.3 (15 D 21)

    My computer crashed...

    (1) the system hangs usually about all six months requiring a clean install.

    What exactly happens when it crashes? Describe what you saw when it happened. For example, the Mac does not fail to start? Are icons or messages displayed?

  • Drag and drop the element of the array of Clusters

    I have a project that includes an array of 'tests', each of which is a cluster that contains an array of 'numbers', a matching the regular expression string and an array of "tasks" (all of them, is in turn, a group of elements).

    It is:

    • Tests (table of):
      • Cluster:
        • Reference numbers (an array of strings)
        • Regex (string)
        • Tasks (table of):
          • Cluster:
            • Task type
            • Basic channel,
            • Measuring channel
            • Other channels

    I wish I could drag and drop to rearrange the task table in an individual event.  (It is a nice-to-have rather than a urgent request - more for my own learning that no matter what).  For now, I've implemented "Move up" and "Move down" buttons

    Examples are fine for a single cluster that includes a table or an array of objects.  As soon as we have an array of clusters, it is difficult to access individual items within a specific cluster.

    Who that it be completed can drag and drop into such a facility?

    Curiously,.

    Geoff

    Hello GeoffF,

    It's certainly doable and you can even use the standard start drag and drop methods/events, the trickiest part is to determine the table of the elements that are selected on the mouse towards the top/mouse downwards and the swap of manual handling.  Fortunately, there are a few decent examples of how do this out there already, I suggest you take a look at this one:

    Example of community: determine the Index of the clicked element Array in LabVIEW

    https://decibel.NI.com/content/docs/doc-22434

    That should give you the selected table indexes, and then all you have to do is to move the elements around around the drop event.  I have attached a very basic demonstrative example that uses this code I just linked (you need to download that as well) and the events referred to swap two elements of the array.   The attached code is just thrown together, you'll want to design something more robust and scalable to any sort of actual use.

    Kind regards

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

Maybe you are looking for