2 Replies Latest reply on Aug 6, 2007 10:37 PM by Santanu Karar

    Need help on DragManager.doDrag

    Santanu Karar Level 1
      Hi,

      I've an mxml component which I need to be draggable. And it's dragging though.. here's the code:

      private function dragIt(initiator:HBox,dsData:String,event:MouseEvent,format:String):void{
      var imageProxy:Image=new Image();
      imageProxy.load('resources/'+data.thumb);
      imageProxy.height=92;
      imageProxy.width=74;
      var ds:DragSource= new DragSource();
      ds.addData(dsData,format);
      DragManager.doDrag(initiator,ds,event,imageProxy);
      }



      But the problem is, it's only moving the image, described in the code - but not the component's all the objects! i.e there are a few of labels, which are not showing in time of dragging but the image only.

      How could I show all the component's object while dragging?


      Please help.

      tnks,

      ASB