user87659
user87659

Reputation: 43

Adobe Flex / as3: How to implement custom drag-and-drop cursors

Our product team has requested custom cursors during drag/drop operations. They have provided me with three images to implement:

I have embedded these images into the Flex application and I am now trying to implement the desired behavior.

My first thought was to listen to the drag/drop events and set the cursors using the CursorManager.setCursor() method. This solution seems very code intensive and I feel that there must be an easier way to skin the various drag/drop cursor states.

Any ideas?

Upvotes: 4

Views: 7664

Answers (1)

cliff.meyers
cliff.meyers

Reputation: 17734

Check out the various cursor styles available on the DragManager class:

copyCursor

defaultDragImageSkin

linkCursor

moveCursor

rejectCursor

http://livedocs.adobe.com/flex/3/langref/mx/managers/DragManager.html

Upvotes: 5

Related Questions