0 Replies Latest reply on Aug 14, 2007 1:49 AM by jeroencornelissen

    Sprite with DragEvent not working

    jeroencornelissen
      Is it possible to have the drag/drop area as a Sprite?

      var spr:Sprite = this.rawChildren.getChildByName(cd.target) as Sprite;
      spr.addEventListener(DragEvent.DRAG_DROP,doDragDrop);
      spr.addEventListener(DragEvent.DRAG_ENTER,doDragEnter);
      spr.addEventListener(DragEvent.DRAG_OVER,doDragOver);

      None of these events trigger, but if I try it as a canvas it works. So can I conclude that the DragManager doesn't support rawChildren?