Flex StartDrag and StopDrag

I helped one of my team member to solve the problem of Drag, Drop on the component. We tried with traditional method
-On mouseDown get reference of object
-On mouseMove change x and y coordinates
-On mouseUp remove listener

But this methods was too slow. i.e It was not changing the object location consistently. After searching little bit we found new methods startDrag and stopDrag.

Calling this method on the object solve the problem of inconsitence that we faced with traditional method. But we were not able to control the x,y coordinates for the object.

Good to see this greate features of drag and drop with startDrag and stopDrag functions.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: