With reagent drag and drop cursor misalignment.

Hello!

I use jquery ui to make movable and capable of receiving items. I also use the new feature of reactive (thanks!) across the entire animation.

However, when I try to click on my moveable objects, the cursor and the element are disrupt. It seems that when the cursor is over x, y of the draggable element is x ^ 2, y ^ 2, the slider gets to the top left, plus the distance between the droppable object and the cursor.

I can't even let go of the cursor capable of receiving areas and the movable object behaves as he dropped it, even if it appears in the wrong position.

I read something on the adjustment of the alignment of the scene, but that has not worked. See below.

http://forums.Adobe.com/message/4817827#4817827

All the tips are greatly appreciated. A code that I can put directly into the compositionReady stadium would be excellent.

Thank you very much

Heureka! It is possible, I found a solution...

I take the width of the window and make a report with the width of the stage variable... The stageratio then gets multiplied with the details... When resizing the window, variables are recalculated...  Here's a working example:

http://sandbox.junglecrowd.org/responsive_works/publish/Web/responsive.html

Here is the code:

CompositionReady

SYM.xycompensation = function() {}

var point = sym.$('Stage');

var parent = sym.$('Stage').parent ();

var parentWidth = stage.parent () .width ();

var stageWidth = stage.width ();

SYM.scaleratio = stageWidth/parentWidth;

};

SYM.xycompensation ();

$(window) .one ("Resize", function() {}

SYM.xycompensation ();

});

sym.infoLabel = function() {}

var position = sym.$("box").show ();

position2 var = sym.$("text").show ();

position. CSS({)

Top: sym.posY, left:sym.posX

});

position2. CSS({)

Top: sym.posY, left:sym.posX

});

};

Stage.MouseMove

sym.posX = e.pageX * sym.scaleratio + 30;

sym.posY = e.pageY * sym.scaleratio;

sym.infoLabel ();

Tags: Edge Animate

Similar Questions

  • Put the Drag and Drop cursor reset and confirm buttons

    Is it possible to get the hand cursor when flipping the reset and buttons send you in doing drag and drop interactions? I use 8 Captivate.

    Hand-Pointer-Cursor1.png

    Sorry, I don't see a way. These buttons are using the button Quiz style, and although Quiz buttons get the default hand cursor, this is not the case for the D & D buttons. Maybe you could file a feature request, really seems a valid request:

    Feature request/Bug Report Form

  • Newbie request for assistance with several drag-and-drop & multiple targets

    I know that this question has been asked a million times, but I get always very well the solution.  I know that the solution called for me the use of tables in a part of my code, but I have problems understanding how to implement it.  I use Flash CS 5.5 with AS3.

    I have a flash drag-and-drop file which is divided into 4 distinct zones on the stage.  On each box, there are 7 places, for 7 different "puzzle pieces".  The first two spaces on each quadrant have very a very specific order for the correct puzzle pieces, while the 5 additional places on each quadrant also have specific parts, but the order is not important.  I have included my code below for reference (note that I have not all instances, finished yet).

    Basically, in code that's been created, the following bodies have specific targets with specific command:

    D1_1_mc, D1_2_mc, D1_1_mc, D2_2_mc, D3_1_mc, D3_2_mc, D4_1_mc and D4_2_mc.

    All other instances, such as D1_3_mc, D2_3_mc, D2_4_mc, etc. have specific quadrants on which they need to fall, but what about the last 5 'spaces' in each quadrant, the order does not matter.  I know that I can continue to do what I do, but I would have preferred that the last 5 pieces on each quandrant do not have to be in a specific order.

    You can provide any assistance is greatly appreciated!

    var startX:Number;

    var startY: number;

    var counter: Number = 0;

    D1_1_mc.addEventListener (MouseEvent.MOUSE_DOWN, Pick-up);

    D1_1_mc.addEventListener (MouseEvent.MOUSE_UP, dropIt);

    D1_2_mc.addEventListener (MouseEvent.MOUSE_DOWN, Pick-up);

    D1_2_mc.addEventListener (MouseEvent.MOUSE_UP, dropIt);

    D1_3_mc.addEventListener (MouseEvent.MOUSE_DOWN, Pick-up);

    D1_3_mc.addEventListener (MouseEvent.MOUSE_UP, dropIt);

    D2_1_mc.addEventListener (MouseEvent.MOUSE_DOWN, Pick-up);

    D2_1_mc.addEventListener (MouseEvent.MOUSE_UP, dropIt);

    D2_2_mc.addEventListener (MouseEvent.MOUSE_DOWN, Pick-up);

    D2_2_mc.addEventListener (MouseEvent.MOUSE_UP, dropIt);

    D2_3_mc.addEventListener (MouseEvent.MOUSE_DOWN, Pick-up);

    D2_3_mc.addEventListener (MouseEvent.MOUSE_UP, dropIt);

    D2_4_mc.addEventListener (MouseEvent.MOUSE_DOWN, Pick-up);

    D2_4_mc.addEventListener (MouseEvent.MOUSE_UP, dropIt);

    D3_1_mc.addEventListener (MouseEvent.MOUSE_DOWN, Pick-up);

    D3_1_mc.addEventListener (MouseEvent.MOUSE_UP, dropIt);

    D3_2_mc.addEventListener (MouseEvent.MOUSE_DOWN, Pick-up);

    D3_2_mc.addEventListener (MouseEvent.MOUSE_UP, dropIt);

    D3_3_mc.addEventListener (MouseEvent.MOUSE_DOWN, Pick-up);

    D3_3_mc.addEventListener (MouseEvent.MOUSE_UP, dropIt);

    D4_1_mc.addEventListener (MouseEvent.MOUSE_DOWN, Pick-up);

    D4_1_mc.addEventListener (MouseEvent.MOUSE_UP, dropIt);

    D4_2_mc.addEventListener (MouseEvent.MOUSE_DOWN, Pick-up);

    D4_2_mc.addEventListener (MouseEvent.MOUSE_UP, dropIt);

    D4_3_mc.addEventListener (MouseEvent.MOUSE_DOWN, Pick-up);

    D4_3_mc.addEventListener (MouseEvent.MOUSE_UP, dropIt);

    D4_4_mc.addEventListener (MouseEvent.MOUSE_DOWN, Pick-up);

    D4_4_mc.addEventListener (MouseEvent.MOUSE_UP, dropIt);

    function pickUp(event:MouseEvent):void {}

    event.target.startDrag (true);

    reply_txt. Text = "";

    event.target.parent.addChild (event.target);

    startX = event.target.x;

    startY = event.target.y;

    }

    function dropIt(event:MouseEvent):void {}

    event.target.stopDrag ();

    var myTargetName:String = "target_" + event.target.name;

    var myTarget:DisplayObject = getChildByName (myTargetName);

    If (event.target.dropTarget! = null & & event.target.dropTarget.parent == myTarget) {}

    reply_txt. Text = "Good Job!"

    event.target.removeEventListener (MouseEvent.MOUSE_DOWN, Pick-up);

    event.target.removeEventListener (MouseEvent.MOUSE_UP, dropIt);

    event.target.buttonMode = false;

    Event.Target.x = myTarget.x;

    Event.Target.y = myTarget.y;

    counter ++;

    } else {}

    reply_txt. Text = "Try Again!";

    Event.Target.x = startX;

    Event.Target.y = startY;

    }

    if(Counter == 5) {}

    reply_txt. Text = "congratulations, you did!"

    }

    }

    D1_1_mc.buttonMode = true;

    D1_2_mc.buttonMode = true;

    D1_3_mc.buttonMode = true;

    D2_1_mc.buttonMode = true;

    D2_2_mc.buttonMode = true;

    D2_3_mc.buttonMode = true;

    D2_4_mc.buttonMode = true;

    D3_1_mc.buttonMode = true;

    D3_2_mc.buttonMode = true;

    D3_2_mc.buttonMode = true;

    D4_1_mc.buttonMode = true;

    D4_2_mc.buttonMode = true;

    D4_3_mc.buttonMode = true;

    D4_4_mc.buttonMode = true;

    Since it seems to afew possible gaps in the code you showed, and what I offer myself in response to your questions, I spent a little time get a working model of what I guess you just using the three targets and the fall of four objects.  If you want, I can make the file available for you, but for now, here's the code that works...

    var startX:Number;
    var startY: number;
    var counter: Number = 0;

    target_D2_1_mc.allowed = new Array (D2_1_mc);
    target_D2_2_mc.allowed = new Array (D2_2_mc);
    target_D2_3_mc.allowed = new Array (D2_3_mc, D2_4_mc);

    D2_1_mc.addEventListener (MouseEvent.MOUSE_DOWN, Pick-up);
    D2_1_mc.addEventListener (MouseEvent.MOUSE_UP, dropIt);
    D2_2_mc.addEventListener (MouseEvent.MOUSE_DOWN, Pick-up);
    D2_2_mc.addEventListener (MouseEvent.MOUSE_UP, dropIt);
    D2_3_mc.addEventListener (MouseEvent.MOUSE_DOWN, Pick-up);
    D2_3_mc.addEventListener (MouseEvent.MOUSE_UP, dropIt);
    D2_4_mc.addEventListener (MouseEvent.MOUSE_DOWN, Pick-up);
    D2_4_mc.addEventListener (MouseEvent.MOUSE_UP, dropIt);

    function pickUp(event:MouseEvent):void {}

    reply_txt. Text = "Good Luck."
    event.target.startDrag (true);
    event.target.parent.addChild (event.target);
    startX = event.target.x;
    startY = event.target.y;
    }

    function dropIt(event:MouseEvent):void {}

    event.target.stopDrag ();

    If (event.target.dropTarget! = null & MovieClip (event.target.dropTarget.parent).allowed.indexOf (event.target) >-1) {}
    reply_txt. Text = "Good Job!"
    event.target.removeEventListener (MouseEvent.MOUSE_DOWN, Pick-up);
    event.target.removeEventListener (MouseEvent.MOUSE_UP, dropIt);
    event.target.buttonMode = false;
    Event.Target.x = MovieClip (event.target.dropTarget.parent) .x;
    Event.Target.y = there MovieClip (event.target.dropTarget.parent);
    counter ++;
    } else {}
    reply_txt. Text = "Try Again!";
    Event.Target.x = startX;
    Event.Target.y = startY;
    }

    if(Counter == 5) {}
    reply_txt. Text = "congratulations, you did!"
    }
    }

    D2_1_mc.buttonMode = true;
    D2_2_mc.buttonMode = true;
    D2_3_mc.buttonMode = true;
    D2_4_mc.buttonMode = true;

  • Help with a Drag and Drop problem

    I design a simple drag and drop the game, ranking but I had several objects and targets, for example square shaped object cannot go to target square shape, but when I have 2 or more place then the square2, carre3 can not go to square target! I used the code as belo

    var objectoriginalX:Number;
    var objectoriginalY:Number;
    var counter: Number = 0;

    triangle_mc.buttonMode = true;
    triangle_mc.addEventListener (MouseEvent.MOUSE_DOWN, pickupObject);
    triangle_mc.addEventListener (MouseEvent.MOUSE_UP, dropObject);

    circle_mc.buttonMode = true;
    circle_mc.addEventListener (MouseEvent.MOUSE_DOWN, pickupObject);
    circle_mc.addEventListener (MouseEvent.MOUSE_UP, dropObject);

    square_mc.buttonMode = true;
    square_mc.addEventListener (MouseEvent.MOUSE_DOWN, pickupObject);
    square_mc.addEventListener (MouseEvent.MOUSE_UP, dropObject);

    square2_mc.buttonMode = true;
    square2_mc.addEventListener (MouseEvent.MOUSE_DOWN, pickupObject);
    square2_mc.addEventListener (MouseEvent.MOUSE_UP, dropObject);

    square3_mc.buttonMode = true;
    square3_mc.addEventListener (MouseEvent.MOUSE_DOWN, pickupObject);
    square3_mc.addEventListener (MouseEvent.MOUSE_UP, dropObject);

    star_mc.buttonMode = true;
    star_mc.addEventListener (MouseEvent.MOUSE_DOWN, pickupObject);
    star_mc.addEventListener (MouseEvent.MOUSE_UP, dropObject);

    poly_mc.buttonMode = true;
    poly_mc.addEventListener (MouseEvent.MOUSE_DOWN, pickupObject);
    poly_mc.addEventListener (MouseEvent.MOUSE_UP, dropObject);

    function pickupObject(event:MouseEvent):void {}
    event.target.startDrag (true);
    event.target.parent.addChild (event.target);
    objectoriginalX = event.target.x;
    objectoriginalY = event.target.y;
    }
    function dropObject(event:MouseEvent):void {}
    event.target.stopDrag ();
    var matchingTargetName:String = "target" + event.target.name;
    var matchingTarget:DisplayObject = getChildByName (matchingTargetName);
    If (event.target.dropTarget! = null & & event.target.dropTarget.parent == matchingTarget) {}
    reply_txt. Text = "Good Job!"
    event.target.removeEventListener (MouseEvent.MOUSE_DOWN, pickupObject);
    event.target.removeEventListener (MouseEvent.MOUSE_UP, dropObject);
    event.target.buttonMode = false;
    Event.Target.x = matchingTarget.x;
    Event.Target.y = matchingTarget.y;
    counter ++;
    score_txt. Text = String (counter);

    } else {}
    reply_txt. Text = "Try Again!";
    Event.Target.x = objectoriginalX;
    Event.Target.y = objectoriginalY;
    -counter;
    score_txt. Text = String (counter);
    }
    }

    Thank you very much for your help!

    An easy way to handle this is to assign a variable for each target that will tell you whether or not it is still a usable lens... Let's say you name "usable", it starts as a true for each target value.  Once a target is used you change the value of this variable to false.  You use this variable as abother test in your conditional.  Something like...

    If (event.target.dropTarget! = null & event.target.dropTarget.parent == matchingTarget & event.target.dropTarget.useable ) {}

    event.target.dropTarget.useable = false;

  • Drag and Drop exercise: buttons disappear

    Hello

    When I hit the button 'Send' an exercise slide / move quiz buttons 'Back', 'Reset' and 'Send' (that come automatically with the Drag and Drop exercise) disappear.

    Any idea what goes wrong?

    I see, in English these are the buttons cancel, restore, and submit. Only the last is really necessary. The other two buttons can be selected in the Actions tab, but are not mandatory.

    If you have kept the default settings, which means 1 attempt and the two actions on the success and failure are left to continue it is normal that all the buttons disappear after clicking on the submit button. They will also disappear when you gave a correct answer, even if efforts are not exhausted. They will remain on the slide when you have an incorrect answer and attempts are not exhausted: in this case, the buttons will remain and the legend of the failure appears. With undo the last action can be cancelled, with reset all sources of drag are returned to their original location. The two buttons are also active before the submission of the response.

    You can find more tips on D & D:

    http://blog.lilybiri.com/drag-and-drop-tips

    & Slipped in 2016 with Captivate 9 - Captivate blog

  • Drag and drop - lots of sources to a Drop target

    I have a D & D built scenario where I have 13 objects potential drag, enter a single drop zone. I have the set drop target to accept all the potential that they may all be considered "correct" its a learning experience, not a question of quiz, as well as several items can be deleted. I want to count to 5 and then offer the opportunity to continue to the next section.

    I wonder, to simply count items 5 (in any combination), I would just do a conditional action called "correct" and then set it to zero... and then when an article is accepted, a tip action sets 'proper' fix + 1. and then a conditional action would trigger the 'next' button and the message when correct was equal to 5?

    I did something similar from the selections with buttons, but not with the drag and drop. Does anyone have an overview of how to count the elements correctly deleted? When my account hits 5 fell, I want to bring up the 'Thank you now extend' option.

    Thanks in advance.

    JPM

    Hello

    It is a possible workflow, I used a tip action, but if you want to do this more than once, or to different numbers of counter, I propose to create a joint instead. Will try to explain my work flow (did not use the 13 7 do but drag sources, my account was created to3):

    1. Create a v_counter variable user, with the default value 0
    2. Create interaction D & D according to the normal procedure, BUT do not forget to assign a type to the drag_sources; that will make it easier not only to create the interaction (you need only a single link from 'type' to the target) to affect the action. I've created a «Ellips» type
    3. Create the message appears when the user drags the correct number of objects, and the next button, but both are invisible in the properties panel. I have marked their 'Star' (for the message) and BtNext
    4. Create an advanced (or shared action) which will be conditional with two decisions, the first decision is a Standard measure simulated to increment the counter. Then, check the meter and displays the message and button if the number is correct.
    5. Assign to this fast action to the action object column (see Format tab for the Actions of the object in case button you are on CP8) for the type.

    More tips for D & D: advice & glide - Captivate blog

  • Drag and Drop indicator of progress

    Hello everyone,

    I really hope to get help here:

    I did a fun quiz with a drag and drop slides (which works fine).

    The next slide after slide slide - déposer is a regular question slide. The problem is that the progress indicator (Question 1 of the XX)

    ignores the blade drag / move (I know that it is not a question slide to drag-n - déposer)

    Is it possible to add the progress to this slide indicator drag-and - déposer?

    I am the first and only one with this problem?

    Any help is appreciated.

    Greetings

    Panthalassa

    P.S. I use captivate 7 If this helps

    Hello

    No, you're not the first. I blog for a long time already on creating a custom progress indicator. The reason at that time was that he could not be located in this version, and I've created some custom question that slides get either the progress indicator. Now D & D is one of these. Take a look on:

    Custom indicator progress - Captivate blog

    If you're on CP7 or later, you can replace the tip by a joint action (easier to transfer to other projects) and I think that the statement of increment in the drop-down list advanced Actions was already available for 7. It can replace the Expression in the action described to increment the counter.

    Lilybiri

  • Drag and drop helps!

    Hey guys,.

    I am in need of assistance with my drag and drop code. I have 3 Movieclips (mc, mc1, mc2). With an area (targetCircle). For the moment, it is when I do drag of the clips in the target area and then replace it with an another movieclip, the movieclip that was in the target area goes back to the original position of the movieclip that I just replaced with the recent movieclip.

    Thus for example shown in the picture below, 'mc' is in the target zone for the moment, and its original position is shown in the picture. Let's say I have take "mc2" and drag it to replace "mc" in the target area. What is happening is "mc" goes where "mc2" original position up to the top. Where "mc" should be going back to his appointed to the top post.

    Example Image:

    123.png1234.png

    Here is my code:

    import fl.transitions.Tween;
    import fl.transitions.easing.*;
    
    showtext.visible = false;
    showtext1.visible = false;
    showtext2.visible = false;
    
    // initialize your draggable MovieClips
    mc.addEventListener(MouseEvent.MOUSE_DOWN, mouseHandler);
    mc1.addEventListener(MouseEvent.MOUSE_DOWN, mouseHandler);
    mc2.addEventListener(MouseEvent.MOUSE_DOWN, mouseHandler);
    
    var xpos:Number;
    var ypos:Number;
    var draggedMc:String;
    var hittingMc:String = "";
    
    function mouseHandler(e:MouseEvent):void{
        switch(e.type){
            case "mouseDown":
                draggedMc = e.target.name;
                xpos = e.target.x;
                ypos = e.target.y;
                setChildIndex(getChildByName(e.target.name), this.numChildren-1);
                e.target.startDrag();
                stage.addEventListener(MouseEvent.MOUSE_UP, mouseHandler);
            break;
            case "mouseUp":
                stopDrag();
                stage.removeEventListener(MouseEvent.MOUSE_UP, mouseHandler);
                checkPosition();
            break;
            default:
                trace("Error");
            break;
        }
    }
    function checkPosition():void{
        // tests if the draggable object hits the targetCircle
        if(getChildByName(draggedMc).hitTestObject(targetCircle)){
            var xEndPoint:Number = targetCircle.x + ((targetCircle.width / 15) - (getChildByName(draggedMc).width / 15));
            var yEndPoint:Number = targetCircle.y + ((targetCircle.height / 15) - (getChildByName(draggedMc).height / 15));
        
         if(getChildByName(draggedMc) == mc) {
              showtext.visible = true; 
              }else{
                   showtext.visible = false; 
              }
              
              if(getChildByName(draggedMc) == mc1) {
              showtext1.visible = true; 
              }else{
                   showtext1.visible = false; 
              }
              
              if(getChildByName(draggedMc) == mc2) {
              showtext2.visible = true; 
              }else{
                   showtext2.visible = false; 
              }
              
              if(hittingMc == ""){
                var tween1:Tween = new Tween(getChildByName(draggedMc),"x",Strong.easeOut,getChildByName(draggedMc).x,xEndPoint,.5,true);
                var tween2:Tween = new Tween(getChildByName(draggedMc),"y",Strong.easeOut,getChildByName(draggedMc).y,yEndPoint,.5,true);
                hittingMc = draggedMc;
            }
            else if(hittingMc != "" && hittingMc != draggedMc){
                var tween3:Tween = new Tween(getChildByName(draggedMc),"x",Strong.easeOut,getChildByName(draggedMc).x,xEndPoint,.5,true);
                var tween4:Tween = new Tween(getChildByName(draggedMc),"y",Strong.easeOut,getChildByName(draggedMc).y,yEndPoint,.5,true);
                var tween5:Tween = new Tween(getChildByName(hittingMc),"x",Strong.easeOut,getChildByName(hittingMc).x,xpos,.5,true);
                var tween6:Tween = new Tween(getChildByName(hittingMc),"y",Strong.easeOut,getChildByName(hittingMc).y,ypos,.5,true);
                hittingMc = draggedMc;
            }else{
                var tween7:Tween = new Tween(getChildByName(draggedMc),"x",Strong.easeOut,getChildByName(draggedMc).x,xEndPoint,.5,true);
                var tween8:Tween = new Tween(getChildByName(draggedMc),"y",Strong.easeOut,getChildByName(draggedMc).y,yEndPoint,.5,true);
            }
        }
         
         
         
        else if(hittingMc == draggedMc) {
            hittingMc = "";
        }
         
         else{
            var tween9:Tween = new Tween(getChildByName(draggedMc),"x",Strong.easeOut,getChildByName(draggedMc).x,xpos,.5,true);
            var tween10:Tween = new Tween(getChildByName(draggedMc),"y",Strong.easeOut,getChildByName(draggedMc).y,ypos,.5,true);
        }
    }
    
    

    Import fl.transitions.Tween;
    Fl.transitions.easing import. *;

    ShowText.Visible = false;
    showtext1. Visible = false;
    showtext2. Visible = false;

    var xArr:Array = new Array();
    var yArr:Array = new Array();


    initialize your draggable MovieClips
    for (var i: int = 0; i<>
    This ["mc" + i] .addEventListener (MouseEvent.MOUSE_DOWN, mouseHandler);
    xArr.push (this ["mc" + i] .x);
    yArr.push (this ["mc" + i] there);
    }

    var xpos:Number;
    var ypos:Number;
    var draggedMc:String;
    var hittingMc:String = "";

    function mouseHandler(e:MouseEvent):void {}
    {Switch (e.type)}
    case "mouseDown":
    draggedMc = e.target.name;
    PosX = e.target.x;
    YPos = e.target.y;
    setChildIndex (getChildByName (e.target.name), this.numChildren - 1);
    e.target.startDrag ();
    stage.addEventListener (MouseEvent.MOUSE_UP, mouseHandler);
    break;
    case "mouseUp":
    stopDrag();
    stage.removeEventListener (MouseEvent.MOUSE_UP, mouseHandler);
    checkPosition();
    break;
    by default:
    trace ("Error");
    break;
    }
    }
    function checkPosition (): void {}
    tests whether the draggable object strikes the targetCircle
    {if (getChildByName (draggedMc) .hitTestObject (targetCircle))}
    var xEndPoint:Number = targetCircle.x + ((targetCircle.width / 15)-(getChildByName (draggedMc) .width / 15));
    var yEndPoint:Number = targetCircle.y + ((targetCircle.height / 15)-(getChildByName (draggedMc) .height / 15));
       
    If (getChildByName (draggedMc) == mc0) {}
    ShowText.Visible = true;
    } else {}
    ShowText.Visible = false;
    }
             
    If (getChildByName (draggedMc) == mc1) {}
    showtext1. Visible = true;
    } else {}
    showtext1. Visible = false;
    }
             
    If (getChildByName (draggedMc) == mc2) {}
    showtext2. Visible = true;
    } else {}
    showtext2. Visible = false;
    }
             
    If (hittingMc == "") {}
    var tween1:Tween = new Tween (getChildByName (draggedMc), "x", Strong.easeOut, getChildByName (draggedMc) .x, xEndPoint,.5, true);
    var tween2:Tween = new Tween (getChildByName (draggedMc), "y", Strong.easeOut, getChildByName (draggedMc) there, yEndPoint,.5, true);
    hittingMc = draggedMc;
    }
    ElseIf (hittingMc! = "" & hittingMc!) = draggedMc) {}
    var tween3:Tween = new Tween (getChildByName (draggedMc), "x", Strong.easeOut, getChildByName (draggedMc) .x, xEndPoint,.5, true);
    var tween4:Tween = new Tween (getChildByName (draggedMc), "y", Strong.easeOut, getChildByName (draggedMc) there, yEndPoint,.5, true);
    var temp:int=int(hittingMc.charAt(2));
    var tween5:Tween = new Tween (getChildByName (hittingMc), "x", Strong.easeOut, getChildByName (hittingMc) .x,xArr [temp],. 5, true);
    var tween6:Tween = new Tween (getChildByName (hittingMc), "y", Strong.easeOut, getChildByName (hittingMc) there,yArr [temp],. 5, true);
    hittingMc = draggedMc;
    } else {}
    var tween7:Tween = new Tween (getChildByName (draggedMc), "x", Strong.easeOut, getChildByName (draggedMc) .x, xEndPoint,.5, true);
    var tween8:Tween = new Tween (getChildByName (draggedMc), "y", Strong.easeOut, getChildByName (draggedMc) there, yEndPoint,.5, true);
    }
    }
        
        
        
    of other if(hittingMc == draggedMc) {}
    hittingMc = "";
    }
        
    else {}
    var tween9:Tween = new Tween (getChildByName (draggedMc), "x", Strong.easeOut, getChildByName (draggedMc) .x, xpos,.5, EU tr);
    var tween10:Tween = new Tween (getChildByName (draggedMc), "y", Strong.easeOut, getChildByName (draggedMc) there, ypos,.5, EU tr);
    }
    }

    Note: Once you drag the first position the xpos and ypos are updated to the item newly slipped. That's why itz to another location. Please copy and paste the code it works.

  • Error #1069: TextField drag and drop

    I created a clip I creates instances of the runtime by clicking on a button, these movieclips all have the anuee name # where # is the instance number.

    My problem is that the clip has a text box Dynamics slap in the middle of it that does not work with my drag and drop function. If I shake the cloud around the edges, drag drop works. If I click in the Middle it does not work and gives the following error in the output window

    ReferenceError: Error #1069: property not found dropTarget on flash.text.TextField and there is no default value for Suite_fla::MainTimeline/myDragHandler()

    Here is the myDragHandler function which only downwards click the Component Manager I have also a top manager who made stopDrag() but it's the same thing send me two errors for each click.

    function myDragHandler(event:MouseEvent):void
    {
    var object = event.target;
    object.startDrag ();
    };

    So I need to drag the clip even if the user clicks on the text in the middle of the box. Advice or advice is welcome.

    Thank you.

    in your loop where assign you event handlers, try to set the mouseChildren to false on the MovieClips bcloud property.

  • Drag-and-drop exercise

    I'm having problems with the drag and drop code. I think I have everything down to this line:

    20. assign the index zero of dropData to the property selectedRoom of the rf.

    I can get the property selectedRoom of the form with the id ' rf,: but I'm not sure what is meant by "zero index of dropData?

    I had the same problems, changed code in
    AdobeODT.mxml:

    1 make-dropdata object that can be linked, not local
    [Bindable]
    private var dropData:Object;
    and in the function doDragDrop(): dropData = new Object();

    2.

  • I have problems with gmail with firefox. Refreshing page is slow; Drag and drop files in email sometimes do not work.

    My problem is mainly associated with gmail. When I click on return to the Inbox after reading a mail, it takes a good few seconds while in the past, it was always instant.

    My other problem is drag them / move the files as an attachment in gmail. Sometimes it won't work and I have to use the manual icon attaches trombone. However, if I restart firefox and re - connect to gmail, it will work again.

    I also noticed that when you drag an image in the mail window, it will not become an attachment, but it will appear instead. Is there a way where I can choose to have inserted images as attachments rather than displayed in the mail?

    Thanks for any advice you can give me.

    Hi Guigs2,

    Thanks for your advice. I'm not sure what will happen if I change my profile. I'm afraid I'll be somebody else for those who know me.

    So I decided to try the second option on the plugin check. After I clicked on the link the message says that my version of firefox is not the last. I've updated it and so far I don't have drag and drop the problem but we will give it some time and see. This problem does not occur all the time but it happened a few times, so I guess I should try it for a while.

    Thanks a lot for your advice

  • Drag and Drop with XTable

    Hello

    is there a way to allow drag and drop from the data portal in a ChnComboBox-XTable column? Just like in a normal ChnComboBox.

    Kind regards

    Martin

    I found something

    "do something with the channel dropped"
    Void XTable1_EventDrop (ByRef, lines, columns, DropInformation) ' Erzeugter event handler
    Dim oDropElement

    For each oDropElement in DropInformation.DiademElements
    ' place here some code for table updateing
    Call MsgBox (oDropElement.ChannelGroup.Name & "/" & oDropElement.Name)
    Next
    End Sub

    'enable the fall for a single channel in pass 2 '.
    Void XTable1_EventDropAllowed (ByRef this, lines, columns, DropInformation, ByRef DropEffect) 'Erzeugter event handler.
    Dim oDropElement

    If (Col = 2) AND (DropInformation.DiademElements.Count = 1) then
    For each oDropElement in DropInformation.DiademElements
    If oDropElement.IsKindOf (eDataChannel) then
    DropEffect = 1
    End If
    Next
    End If
    End Sub

  • ALT + tab no longer works with drag-and-drop

    I bought a new computer Samsung with Windows 8, two weeks ago. On my old computer, I could choose a file in a folder, then alt - tab to another folder and then drop the selected file. Now, every time I select a file and use alt - tab, the file automatically becomes deselected.

    This never happened to me in my previous versions of Windows.

    To be clear: my keyboard and touch pad working perfectly fine. It is a problem of Windows when you use drag-and - drop jointly with alt - tab.

    Hello Boston,

    This feature is also available in Windows 8. You must select a copy of the file and click alt + tab and select the folder where the file should be moved or pasted.

    If this does not work on your computer, you can try to follow the link below and create a new user account and see if that helps. To create a user account follow this link:

    Create the user account

    I hope this helps. Otherwise, feel free to write us again and we will be happy to help you.

    Thank you

  • Drag and drop in flash cc 2015 with createjs

    can we know how to do simple drag and drop in Web flash with createjs?

    this.circle.addEventListener("pressmove", fl_MouseClickHandler_2.bind(this));

    function fl_MouseClickHandler_2()

    {

    // Start your custom code // This example code displays the words "Mouse clicked" in the Output panel.

    evt.target.x = evt.stageX;

    evt.target.y = evt.stageY; }

    Thank you

    use:

    this.circle.addEventListener("pressmove", fl_MouseClickHandler_2.bind(this)); 
     function fl_MouseClickHandler_2(evt) 
    { 
    // Start your custom code // This example code displays the words "Mouse clicked" in the Output panel.
     evt.target.x = evt.stageX; 
     evt.target.y = evt.stageY; }
    

    Thank you

  • Drag and drop support with the VM mountain lion

    Hi all

    I recently got a new macbook pro (with retina display and the 16 GB and of course the SSD - very soft). I created a machine virtual windows 7 for my windows applications and I also wanted a separate VM to develop on with Mountain Lion, so I downloaded the Cougar from the app store and created an image of mountain lion. My only problem is that it doesn't seem to be any support for drag and drop between my host mountain lion and my mountain lion guest VM. If I try to drag and drop with my windows 7 VM, it works well, but not mountain Lion mountain lion.

    Does anyone know if there are a few settings that I can turn it on or if it is supposed to work? Furthermore, I am under Fusion 5.0.3 and am on MacOS 10.8.3 (on my host and the guest operating system).

    Thank you

    -Jeff

    Hi Jeff,

    Yes it is a limitation having Mac OS X as a guest operating system. There are some other limitations as well as

    • SVGA only.  No chart 2D or 3D accelerated.
    • No unit.
    • No fullscreen multimon support.
    • No USB 3.0 support.

    You can make a feature request or via this link: http://www.vmware.com/contact/contactus.html?department=prod_request

    Thank you

Maybe you are looking for