I have recently started to dig into ApacheRoyale. It's amazing but
documents are all over the place and it's very hard to find your way
around :) I have been trying to find answers without bothering anyone
but it seems like I cannot fix this one...

I have a list in which its content gets updated and sometimes its
items are draggable and sometimes not. I am able to correctly add the
drag functionality but then removeBead does not seem to work at all.

Any ideas?
Thanks in advance

var beadDragSrc:IBead =
_flex.subItemsList.getBeadByTy
pe(SingleSelectionDragSourceBead);
var beadDragImg:IBead =
_flex.subItemsList.getBeadByType(SingleSelectionDragImageBead);

if(isSortable)
{
if(!beadDragSrc)
{
beadDragSrc = new SingleSelectionDragSourceBead();
beadDragSrc["dragType"] = "move";
_flex.subItemsList.addBead(beadDragSrc);
}

if(!beadDragImg)
{
beadDragImg = new SingleSelectionDragImageBead();
_flex.subItemsList.addBead(beadDragImg);
}
}
else
{
if(beadDragSrc) _flex.subItemsList.removeBead(beadDragSrc);
if(beadDragImg) _flex.subItemsList.removeBead(beadDragImg);
}

Reply via email to