Can you make a small test case and post it?
of course. Here you are. Notice that green rectangle is visible during dragging in contrast to red one. The difference is that red one is bigger by one point. Be aware that this behaviour is only on Windows. On MAC OS X it would work correctly.
<?xml version="1.0" encoding="utf-8"?>
layout="absolute" width="800" height="800"
private function init():void
red.width = 201;
red.height = 201;
green.width = 200;
green.height = 200;
private function doDrag(event:MouseEvent):void
var img:Canvas = event.currentTarget as Canvas;
var dragImg:Canvas = new Canvas();
dragImg = img;
var dsource:DragSource = new DragSource();
DragManager.doDrag(img, dsource , event, dragImg);
private function dragAccept(event:DragEvent):void
var dropTarget:Canvas = event.currentTarget as Canvas;
private function dragDrop(event:DragEvent):void
var img:Canvas = event.dragSource.dataForFormat('img') as Canvas;
var dragInitiatorPoint:Point = new Point(event.dragInitiator.x + event.dragInitiator.mouseX, event.dragInitiator.y + event.dragInitiator.mouseY);
img.x = event.localX + img.x - dragInitiatorPoint.x;
img.y = event.localY + img.y - dragInitiatorPoint.y;
<mx:Canvas x="0" y="0" width="780" height="780"
<mx:Canvas id="red" x="20" y="20" mouseDown="doDrag(event)" width="200" height="200"/>
<mx:Canvas id="green" x="300" y="20" mouseDown="doDrag(event)" height="250" width="250"/>
I have same problem
Can somebody help us with this unpleasant trouble?
seems that anybody else faced this problem :-(
Just created an issue in the public Adobe bug tracker for this behavior: https://bugs.adobe.com/jira/browse/FP-5952 (watch/vote if you are interested in the resolution).
I can confirm that the size thresold is 200x200... the interesting thing is that the effect is probably applied by the Windows API: just try to select a single file in explorer and drag it, then try to select and drag a lot of files: you will notice that, only in the second case, Windows will fade the drag image in the same way to prevent it from becoming too big (tried in Windows XP, Windows 7 has a different management of multiple drag elements).