0 Replies Latest reply on Oct 29, 2008 6:45 AM by stigbn

    dragProxy problems

    stigbn
      Hi

      I am trying to use a custom drag proxy object when dragging an SWFLoadere objejt around the screen. I am using a bitmap asset where i draw a bitmap copy of the UIcomponen that I drag. This works fine, except that what looks like the "default proxy" rectangle is shown in the background.

      Here is my code:

      private function onLoaderMouseDown(evt:MouseEvent):void
      {
      var initiator:MSP_SWFLoader = evt.currentTarget as MSP_SWFLoader;
      var dragProxy:BitmapAsset = new BitmapAsset();
      // dragProxy.opaqueBackground = null;
      dragProxy.bitmapData = new BitmapData( initiator.width, initiator.height );
      dragProxy.bitmapData.draw(initiator);
      var dragSource:DragSource = new DragSource();
      DragManager.doDrag( initiator, dragSource, evt,dragProxy,0,0,1.00);
      }

      What do I do wrong here ? I just want the bitmap image to be shown - without a rectangle in the background.

      best regards Stig