Is there an easy way to hide the feedback icons for drag an drop
operations?
I just wanna kill them all together if its possible.
My application has a Tree control for dragging directory paths to
TextInput controls in a Form.
The "addTreeDragToFieldBehavior" is called in my application to
initialize the
drag and drop actions to my TextInput controls.
The static method "showFeedback" does not kill the feedback as I
expected.
DragManager.showFeedback(DragManager.NONE);
How can I kill all feedback so when my Tree items are dragged, there is
no red X beside it?
-- Keith H --
www.keithhair.com
[CODE]
private function addTreeDragToFieldBehavior():void
{
var movefield:Object;
var draggeditem:Object;
function getMousedMoveField(evt:DragEvent):void
{
var n:int=0;
while(n < _rules.length){
var o:Object=_rules[n];
var field:TextInput=TextInput(o.move_field);
if(mouseInsideContainer(field)){
movefield=field;
assignToField();
return;
}
n++;
}
movefield=null;
}
function assignToField():void
{
if(movefield == null){
return;
}
[EMAIL PROTECTED];
movefield=null;
}
function activateDrop(evt:DragEvent):void
{
[EMAIL PROTECTED];
directorytree.removeEventListener(DragEvent.DRAG_COMPLETE,getMousedMoveF\
ield);
directorytree.addEventListener(DragEvent.DRAG_COMPLETE,getMousedMoveFiel\
d);
}
directorytree.removeEventListener(DragEvent.DRAG_ENTER,activateDrop);
directorytree.addEventListener(DragEvent.DRAG_ENTER,activateDrop);
directorytree.dragEnabled=true;
directorytree.dragMoveEnabled=true;
DragManager.showFeedback(DragManager.NONE);
}
[/CODE]