8 Replies Latest reply on Aug 23, 2011 4:56 PM by broconne

    dragExit not called without DragManager.acceptDragDrop?

    broconne

      I have a manual drag drop configured.  In one scenario I set a green filter and call DragManager.acceptDragDrop in the other, I set the filter to be red and do not called acceptDragDrop.  The object I do not call acceptDragDrop on never fires a dragExit event when I move the drag out of the image.  It also never seems to fire a rollOut event.

       

      What event should I be listening for to detect when during a dragDrop operation the mouse moves away and I have no accepted the drag?

       

      Relevant decision code here:

      var glow:GlowFilter=new GlowFilter();
      glow.inner=true;
      glow.blurX=15;
      glow.blurY=15;
      glow.quality=BitmapFilterQuality.MEDIUM;
                               
      if( destResource.getFreeCPU() >= instance.instanceCPU && destResource.getFreeMemory() >= instance.instanceMemory ){
           glow.color = 0x00FF00;
           DragManager.showFeedback(DragManager.MOVE);
           DragManager.acceptDragDrop(Image(event.currentTarget));
           }
      else{                                   
           glow.color = 0xFF0000;                                   
           }
                                    
      nodeImage.filters=[glow];                              
      nodeRollOver(event); //I perform a popup here.
                                    
                                    
                               }