Pages

Wednesday, 27 April 2011

Mega-simple Drag and Drop for Flex 4 Group (Code Example)

My Flex developer Friends are you searching basic drag and drop example for a Flex 4 Group. 
there are lot many drag and drop examples on Google but they all are really complicated. The code is Just tie the startDrag and stopDrag to the mouseDown and mouseUp events. a  really basic, Click a Group and drag it around the Stage Code Whoa! So… this is crazy simple, maybe too simple to even have a code have a look


<s:Group xmlns:fx=”http://ns.adobe.com/mxml/2009″
xmlns:s=”library://ns.adobe.com/flex/spark”
xmlns:mx=”library://ns.adobe.com/flex/mx”
mouseDown=”this.startDrag();” mouseUp=”this.stopDrag();”>
<!– all your group stuff goes here //–>
</s:Group>
Hope This Might Helped you  in Some Way

0 comments:

Post a Comment