0 Replies Latest reply on Jan 5, 2009 7:25 PM by flexstone

    Interupted Drag/Drop - itemRenderer disappears

    flexstone Level 1
      I am trying to drap an itemRenderer from a HorizontalList to a TileList and have the completed drag/drop working however if I click on the item in the HL but do not drop on the designated target - the item (proxy) snaps back into place but then becomes invisible.

      I am using the same original image from the initiator as the proxy image - which required the use of a Loader() to make the image source available / visible


      public function dragIt(event:MouseEvent):void
      {

      var dragInitiator:qs.controls.SuperImage=qs.controls.SuperImage(event.currentTarget);
      var mydata = event.currentTarget.parent.data

      var ds:DragSource = new DragSource();
      ds.addData(mydata,'items')
      var myProxy:Image = new Image()
      myProxy.source = event.currentTarget.source
      myProxy.width = dragInitiator.width
      myProxy.height = dragInitiator.height
      myProxy.alpha = .5

      DragManager.doDrag(dragInitiator, ds, event, myProxy,0,0,.5,true);

      }

      Any ideas how to restore the original image to the List ?