Drag and Drop exercise

Hi. I am a language teacher and completely new to Flash. I
have designed a drag and drop exercise with textboxes that I
converted into movie clips.
One set of textboxes are empty and are the 'target'
textboxes.
The other set of textboxes are exactly the same size but have
writing in them. I have attached the following action script to the
moveable textboxes:
While I have succeeded in making the textboxes move, they
will not drop into the 'target' textboxes and stay there. Any idea,
why?

Hello kglad. Before I started this drag and drop exercise
using textboxes, I followed a tutorial which I found on another
flash website. I was taught how to design a drag and drop game for
which I drew 4 different shapes. Then, I copied those 4 shapes and
put them onto another layer. One set of shapes was to be the target
shapes, the other ones were draggable. I used the code you can see
below. This game worked fine - when I dragged the shapes over the
correct targets, they stayed there. I then tried to replicate the
same idea (using the same basic code but changing the instance
names) but instead of drawing shapes, I used textboxes.
Unfortunately, I still can't get this to work. Is there a
fundamental difference between shapes and textboxes?

Similar Messages

  • Help on Final Step for Drag and Drop Exercise

    Does anyone know the best way to create a test item where the learner has to place a check mark in the correct cells and hit submit to succeed. 
    I was using a drag and drop  but I am lost on step three. 
    I am using the check marks as drag sources, square shapes located in all cells will the correct cell/box assigned as the correct drop target.
    The issue is when I get to step three, how do I allow the user to drag ANY checkmark (drag target) to the correct cell/box (drop target).  When I get to step 3, I have to assign each individual  checkmark to ONE specific cell/box and I want the learner to be able to drag any checkmark, as long as it is dropped in a designated drop target.
    If there is another way I should approach this test item instead of drag and drop, I am open to any suggestions.
    Here is an example:

    I purchased the Master Widget from Infosemantics a few months back but between my day job and my schooling for my ID Certification from UC Irvine Extension, I have not had the time to figure it out.
    I thought there would be an easier way but as usual, nothing is a quick fix anymore.  Even when you think your just missing a simple step.
    Thanks,
    Jeff

  • AS2 Drag and Drop interactive exercise widget - Captivate 4

    Hello,
    I need an Actionscript 2 widget to create drag and drop exercises. Can anyone tell me where I can find a good one?
    Thanks!

    Is there a specific reason why you can't output your project to AS3?
    If you can use AS3 there are two Infosemantics Drag and Drop widgets you can choose from.
    I don't know of any drag and drop widgets in AS2.

  • XML based drag and drop

    ok, im not new to any of this really. Im simply stuck and
    cant figure out why my drop targets arent working. my variables are
    tracing directly before the drop target is evaluating.... its just
    not returning that it is droped on the target.
    the specific problem:
    btn.onRelease = function(){
    stopDrag();
    target_ = _root["t_"+ a_num];
    droper = _root["d_"+ a_num];
    trace(droper + "//" + target_);
    //////--------------------THE
    PROBLEM--------------------///////
    if (eval(droper._droptarget) == target_) {
    trace("Success");
    }else{
    trace("failure")
    here is the code in full:
    //sets animation begin point variables
    for(i = 0;i< 10; i++){
    tx = i*125;
    ty = i*125;
    dx = 180;
    dy = i*125;
    //loading animations and non-xml text loads//
    obs_box.top_.tex_1 = "Drag and Drop Exercise";
    obs_box.stg_.slideTo(obs_box.stg_._x, -467.5, 1,
    "easeOutQuad");
    obs_box.top_.slideTo(obs_box.top_._x, -525, .75,
    "easeInOutQuad", .25);
    side_bg.slideTo(side_bg._x, 175, 1, "easeOutQuad");
    //load xml//
    var terms_xml = new XML();
    terms_xml.ignoreWhite = true;
    terms_xml.onLoad = function(success){
    //end loading of data//
    if (success){
    var main_ob:Array = new Array();
    var main_trgt:Array = new Array();
    var term_:Array = new Array();
    var titl_ = terms_xml.firstChild.firstChild.childNodes;
    var term_ = terms_xml.firstChild.childNodes;
    header_.title_text = titl_;
    list_amount = term_.length -1;
    for (var i=0; i < list_amount; i++){
    main_ob
    = term_.nextSibling.firstChild.childNodes;
    main_trgt
    = term_.nextSibling.firstChild.nextSibling.childNodes;
    //attaches the drop target movie clip (t_1) and created text
    fields//
    amount = main_trgt.length;
    for(x=0;x<amount;x++){
    ypos = x*25;
    _root.attachMovie("target_", "t_"+x,x,{_x:tx, _y:ypos});
    //determines position of drop targets//
    if(x>3){
    ypos =135+130;
    xpos = 662.5-(amount+125) * (x-4);
    }else{
    ypos = 135;
    xpos = 662.5-(amount+125) * x;
    //drop target positions are set now time to move them there
    (**originating position of the drop targets are set throught
    //tx & ty variables in the top of this document
    var tgt = _root["t_"+x];
    var ob_t =tgt.t_tex;
    tgt.scaleTo(0, .001, "ease");
    tgt.scaleTo(100, 1.75, "easeInOutBack", x/5);
    tgt.slideTo(xpos,ypos,.75,"easeOutQuad",x/75);
    tgt.alphaTo(50, 1, "easeOutQuad");
    ob_t.text = main_trgt[x];
    //attaches the movie clip that will be droped onto the target
    (d_1) and created text fields//
    amount = main_ob.length;
    var ypos = new Array();
    var btn:Array = new Array;
    for(v = 0; v<amount;v++){
    ypos[v] =300/amount*v+25;
    _ypos = ypos.randomize();
    for(j=0;j<amount;j++){
    _root.attachMovie("drop", "d_"+j,j+ 8,{_x:90, _y:_ypos});
    //determines position of object//
    //object positions are set now time to move them there
    (**originating position of the drop targets are set throught
    //dx & dy variables in the top of this document
    btn = _root["d_"+j];
    var btn_t = btn.d_tex;
    btn.scaleTo(0, .001, "ease");
    btn.scaleTo(100, 1.75, "easeInOutBack", j/5);
    btn.slideTo(83,250,.75,"easeOInutQuad",j/amount);
    btn.slideTo(83,_ypos[j],.75,"easeInOutQuad",j/amount+1);
    btn.alphaTo(95, 1, "easeOutQuad");
    btn_t.text = main_ob[j];
    //begin button actions when interacted with//
    btn.onRollOver = function(){
    ovr(this);
    btn.onRollOut = function(){
    ndr(this);
    btn.onPress = function(){
    drg(this);
    btn.onRelease = function(){
    var que:String = quest;
    _que = new String(quest);
    q_num = _que.substr(10,1);
    var _par:String = this;
    _par_str = new String(_par);
    numer = _par_str.substr(10,1);
    ans = _par;
    var ans:String = ans;
    _ans = new String(ans);
    a_num = _ans.substr(10,1);
    stopDrag();
    target_ = _root["t_"+ a_num];
    droper = _root["d_"+ a_num];
    trace("----------------->>");
    trace(droper + "//" + target_);
    trace("<<--------------------");
    if (eval(droper._droptarget) == target_) {
    trace("Success");
    }else{
    trace("failure")
    btn.releaseOutside = function(){
    MovieClip.prototype.ovr = function(ob){
    ob.alphaTo(75,1, "easeOutQuad");
    ob.btn_cover.slideTo(btn_cover._x, -15, .75, "easeOutQuad");
    ob.btn_cover.brightnessTo(50, .25, "easeInOutQuad",.25);
    ob.btn_cover.brightnessTo(60, .25, "easeInOutQuad",1);
    MovieClip.prototype.ndr = function(ob){
    ob.alphaTo(100,1, "easeOutQuad");
    ob.btn_cover.slideTo(btn_cover._x, -40, 1, "easeOutQuad");
    ob.btn_cover.brightnessTo(0, 1, "easeInOutQuad",1);
    MovieClip.prototype.drg = function(ob){
    ob.startDrag(ob);
    //final closer "}" below. Everything must reside above this
    unless its a prototype(function)
    //or the xml.load call//
    //COMMITS THE XML LOAD FUNCTION ABOVE//
    terms_xml.load("dnd.xml");
    //Randomize the answers on the left//
    Array.prototype.randomize = function() {
    var i = this.length;
    if (i == 0) return;
    while (--i) {
    var j = Math.floor(Math.random()*(i+1));
    var tmp1 = this
    var tmp2 = this[j];
    this = tmp2;
    this[j] = tmp1;
    return this;
    }

    this & droper both return the same object. i actually
    have it back to this right now. the one i posted up was just
    testing. ive run out of ideas so im testing the stupid things.
    sooooo, anyone else got ideas on why it isnt reading when the
    object is dropped?

  • How can I attach an additional action to the "reset" button in the drag and drop interaction?

    Hello,
    I would like to know how to attach an additional behavior to the "reset" button in my drag and drop exercise.
    Here is the background:
    In my drag and drop exercise, when the user drops the source on a target of his choice, certain elements appear and certain elements disappear
    This means that depending on where he dropped the sources, certain elements will be visible and certain elements invisible when he is finished the activity
    Because the sources are not re-draggable once he drops them, he will have the option to reset the exercise and start again from the beginning using the reset button
    My challenge:
    I would like exercise to return to its original state when the user selects the rest button .  this means:
    the dragged objects return to their orginal starting location (this is what naturally occurs when you hit the reset button)
    any objects that had disappeared during the course of the activity reappear
    objects that were not visible in the beginning , but had appeared during the course of the activity, again become invisible
    So how can I add this action to the reset button?

    Allowing the user to redrag the souce after it has been dropped would work for my particular problem  if I could bind an action to the event redragging, namely making the elements reappear that had disappeared and the elements disappear that had appeared when the user dropped it the first time.

  • Drag and Drop Success Message and Timer on all frames in Captivate

    Hi All,
    I am trying to do two things in a captivate project I am working upon currently. They are :-
    1. I have a drag and drop exercise where I have chosen the setting that the drop does not accept the incorrect drag item and sends it back immediately. I am trying to make a success caption like 'Good Job' or somethign appear on the user putting all the drag source in the correct drop boxes. I am not using the submit button. Once the success caption appears the user can click on a next button to move to next slide. I am not able to put the success caption there.
    2. I am trying to put an active timer on the slides so the user can see the total time of elearning, time elapsed or time left on all slides.
    Can you guys help me out with these issues I have.
    Thanks
    Aashish

    What did you do with the Submit button? Did you activate Auto Submit? Be careful with just deleting essential objects for D&D, same as for question slides.
    Explanation about Success caption can be found in this article:
    Drag&Drop tips - Captivate blog
    There are two learning interactions, Hourglass and Timer that you can use (besides the work flow explained in the other article). And it is important to know the difference between 'editor's time' and real time. This is explained in the article that Sreekanth pointed to.

  • Drag and Drop / WCAG 2.0

    Working on storyboards/ID for a project that must be WCAG 2.0 compliant.
    Does anyone know if drag and drop exercises can meet this requirement? (Keyboard equivalents?). Also, what about roll-overs?
    any advice/help would be appreciated!
    Thanks

    The usual answer is NO.  Best to avoid drag and drop interactions if you are going for accessibility with a single course that all users must use.
    My preference is to have two versions of the course. One for general users that allows for more engaging interactions such as drag and drop, and another very plain but eminently accessible version that has everything non accessible stripped out.  I realise that this means a slightly higher budget expenditure, but the reality is that forcing all users to use accessible courses penalizes the majority of users if it denies them the ability to consume more engaging content.
    By all means cater to those with accessibility needs.  They certainly have rights. 
    But don't forget that the other much larger part of your audience also have rights too.

  • Captivate 7 - Drag and Drop not exporting into HTML5

    I have a drag and drop exercise that is stopping me from getting it to play in HTML5. It works fine as a SWF, but I can't even get it to open the player. It just shows a black screen. If I delete that slide, it works fine. Suggestions?

    Hi Phil,
    From the shared project, i can see that the 'On Drop' action is set as 'Continue' for both the targets. Please change it to 'No action ‘and see it resolves the issue or not. To change the action,
    Select the target, Click on the 'Accept' button from the Drag and Drop Panel.
    Change the 'On Drop' action as 'No action'.
    Repeat the same steps for Targets2 as well.
    Thanks,
    Nimmy Sukumaran.

  • Drag and drop flash template in Captivate

    Hi,
    I'm having troubles inserting drag and drop exercises, generated through a Flash template, into Captivate as a swf. They sometimes work but the result is very instable. Here are two examples with the exact swf : one works fine and the other one doesn't display the buttons. The only difference is a blank slide in the second one...
    Has anyone tried this before have any idea?

    Michael
    Thanks for taking the time to check out the files.
    Here's the problem : example 1 shows OK, the buttons are visible and active. These two top buttons (circled in red) are from the embedded swf file, whereas the third one in the bottom was created in Captivate. They have the same look and feel sothat users won't notice the difference.
    Now, in example 2, these buttons from the swf file don't show. The Captivate button works fine.
    The two swf files are basically clones, nothing has been altered exept for sounds and images. The code is from the Test template that comes with Flash. They work perfectly fine while played alone, but have this behavior where embedded in Captivate.
    I have the exact same problem whatever the way I open them (Flash player, Firefox or IE 7), and my Flash player is up to date. Both the swf and the cp are AS 2.

  • Flash Drag and Drop Template in Captivate.  *HELP*

    Good morning.
    I am attempting to use the drag and drop learning interaction
    that comes pre-packaged with Flash CS3 and import it into Captivate
    for use in a Captivate based e-learning exercise.
    I create the drag and drop just fine in Flash, and it looks
    perfect when I publish it in Flash, etc.
    When I attempt to use the EXACT same SWF in Captivate,
    however, it does not work. I can move the drags around the screen,
    but they will not "drop" where they are supposed to.
    Thinking maybe I broke the template, I went ahead and just
    imported it 100% unchanged from Flash into Captivate (without me
    messing around with it changing things around) and it does the
    exact same thing.
    I have successfully used my own homemade flash "widgets" in
    Captivate, to include like click and reveal type interactions...for
    whatever reason, though, I can't get this one to work, even though
    I know it works perfectly in Flash.
    The .swf file was developed using ActionScript 2.0 in Flash
    and I tried publishing it with Flash 9 and Flash 8 as the setting,
    both do the same thing.
    Help!!!?
    Thanks.
    Rob

    Hi R
    Note that the Border simply adds space to the project so the
    playback controls aren't covering part of your movie. Assuming you
    want that to continue AND have a playback control, you might resize
    the project so the playback control is included in the main movie
    as well as being placed in an area that doesn't possibly obscure
    any screen activity.
    Cheers... Rick

  • Drag and Drop in Training Simulation

    Hi everyone. Newbie here.
    I am creating a software training module. One of my exercises
    requires my users to re-order some columns by dragging and
    dropping. If I record in training simulation, is there a way to
    capture drag and drop? Or do I just need to create a click zone on
    the column header and then jump to the next slide where the column
    is in its correct location?

    Capture of a drag and drop action should be automatic if all
    defaults are left. There is a feature called "full-motion"
    recording that is automatically invoked whenever a
    left-click-and-hold action is detected by Captivate - during the
    Recording function.
    Note the "full-motion" I am referring to is NOT the same as
    using the "Full Motion" recording
    mode. If there is confusion about this, let us know and
    someone hereabouts will give you a detailed explanation.
    ~golfliness is close to Godliness
    Larry

  • Drag and drop in iTunes

    Drag and drop is seriously broken in iTunes an has made managing songs an exercise in futility.

    The problem occurs intermittently now that I think about it when I try to rearrange the order of songs that are already on the shuffle. I will highlight an album using the shift key and holding down the left click (The Mouse, MacMice). After a second if it works all songs can be dragged to wherever I want. But the problem is while still keeping the left click of the mouse held down, only one song will be dragged, thus getting the songs out of intended order. Then after using get info to find proper album order, drag and drop messes up again and again so you have a confounded mess. Anyway I didn't want to get into specifics here because I feel that flaming is just around the corner. I just wanted to voice my displeasure about drag and drop not working properly. Thanks, mp

  • Drag and Drop with Capture feature

    I would like to set up a drag and drop interaction. The user
    will drag several icons and place them on a map. They do not have
    to use all the icons provided to them. The map is a rectangle and I
    need to capture the icons placed on the map and there locations.
    Several pages later I would like the final layout of the map and
    icons to appear automatically for them to continue with the
    exercise. I’ve set up target interactions before but each
    icon had a specific place to complete the drag and drop. Please
    advise. The best example I can think of is you have a lot of
    players on the side line of a football field. You drag out the
    players you want to use. Then in the future in order to make the
    next move you need to reference how u set up the field. Does anyone
    have an example i can look at?

    You need to switch previews on for that. More info:
    http://docs.info.apple.com/article.html?artnum=304499

  • VC Drag and Drop in layout tab

    Hi,
    I'm fairly new to VC 7.0 and am trying to lay out my model to find that in the layout tab, I am unable to drag and drop items like some of the exercises I am doing instruct me to.  I've searched a bit on the forum here and it doesn't seem to be a common occurance so I'm wondering if I'm doing something wrong?
    VC level:  700.17.0.1
    Thanks!

    Hi,
    Find the below documents to learn Visual Composer 7.0
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/63f2052e-0c01-0010-b9a2-e1f7457a7fbe
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/9326072e-0c01-0010-bc97-f72e93338101
    Regards
    Basheer

  • Adding a target to 'drag and drop' code snippet

    Hi,
    I would imagine it's a simple enough bit of additional code, but I'm no programmer, and trawling the Web has proved fruitless to date...
    Within Flash CS5 and using AS 3, I'm attempting to create a series of drag-and-drop interactions for a learning exercise where items must be dragged into the correct box with positive and negative feedback being generated as a result of where the learner drops the item. All I need is the code to link the drag and drop code snippet (which I have working) to a specific object/location on the stage (which I cannot find nor figure out for the life of me)!
    I may be overcomplicating given that perhaps there is a CS5-compatible extension out there somewhere (whatever happened to all of the e-learning extensions and tools Flash once had if my memory serves?) which can provide me with an easily customizable template to achive what I need to do?
    Many thanks in advance to whomever can offer and tips, tools or usable code for this task.
    Galvoice.

    the easiest way to handle that would be to assign a transparent movieclip to the target position and use that movieclip as your droptarget.

Maybe you are looking for

  • Voicemail notifications and visual voicemail stopped working

    On September 17th (a few days ago) my phone stopped giving me voicemail notifications and visual voicemail. I have tried restarting my phone, resetting, resetting "all settings" and even calling 611 (I was put on hold for 15 minutes and just gave up

  • What is the proper way to manage movies in iTunes?

    I've just been given a new video iPod, and am now considering importing movies into iTunes so that I can have them on my iPod. What I have is a bunch of MPGs (e.g., family movies from a camcorder, etc.); but I noticed that the iPod won't play them, p

  • MacBook Pro Freeze when I click 'movies' in iTunes for my ipad

    When I open iTunes I click on my iPad. I can browse the general iPad info, app setting, even music settings. However if I click movies to change my ipads movie setting or try to transfer a movie my entire machine freezes. Any advice? Troy

  • Search web part

    Hello, I'm trying to setup Search Results Web Part to display images from a certain list. I have 2 issues: 1. I cannot create a managed property and use it as a search parameter (I succeeded to create a few managed property in the past but for some r

  • How to check Variable Names

    Hi All, I am checking in CMOD include.  It has lot of code. Example:  When 'ZFISPER' . I think that is Variable Technical name. How to check that variable and in Which Query it is. Please let me know... Thanks in advance.. KN