Hi Winscot,
I found an alternative way to get a proxy image for the DragManager
// FANCY:
// ---
// Add a proxy image here for drag manager to use if you
would like!
var proxy:UIComponent = UIComponent( event.currentTarget );
// Copy the contents of the control (a la bitmap data)
var bitmapData:BitmapData = new BitmapData( proxy.width,
proxy.height );
bitmapData.draw( proxy );
// Let the drag manager take care of the rest - with a
visual indicator of what its dragging...
DragManager.doDrag( dragChild, dragSource, event, new
BitmapAsset(bitmapData) );
Harald
Von: [email protected] [mailto:[EMAIL PROTECTED] Im
Auftrag von Rick Winscot
Gesendet: Samstag, 12. April 2008 03:05
An: [email protected]
Betreff: RE: [flexcoders] drag and drop a button?
Take a look at this sample - BitmapData is used to create a proxy on the fly
of the object being dragged.
http://www.quilix.com/node/3
Rick Winscot
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of grimmwerks
Sent: Friday, April 11, 2008 10:23 AM
To: [email protected]
Subject: [flexcoders] drag and drop a button?
Is there a simple tutorial for it? I don't really want to have an
image proxy - I want to really drag a button somwhere else on the
canvas. Simple.