hi Thanks a lot its working fine.
But i need to drag the copy of the image. regards athi On Dec 1, 3:24 pm, Ryan Cao <[email protected]> wrote: > en, maybe this can help you > > <?xml version="1.0" encoding="utf-8"?> > <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" > layout="absolute" minWidth="955" minHeight="600" > creationComplete="onInit()"> > <mx:Script> > <![CDATA[ > private function onInit():void > { > img.addEventListener(MouseEvent.MOUSE_DOWN , onMouseDownHandle);} > > private function onMouseDownHandle(evt:MouseEvent):void > { > img.startDrag(); > if(!stage.hasEventListener(MouseEvent.MOUSE_UP)) > stage.addEventListener(MouseEvent.MOUSE_UP , onMouseUpHandle);} > > private function onMouseUpHandle(evt:MouseEvent):void > { > if(stage.hasEventListener(MouseEvent.MOUSE_UP)) > stage.removeEventListener(MouseEvent.MOUSE_UP , onMouseUpHandle); > img.stopDrag();} > > ]]> > </mx:Script> > <mx:Canvas id="rc" width="100%" height="100%" > > <mx:Image id="img" source="giveup_over.png" /> > </mx:Canvas> > </mx:Application> > > Hope it useful! > > On 1 December 2010 16:20, athi murugan <[email protected]> wrote: > > > > > > > > > > > hi > > > how it possible . > > give me that source code > > regards > > athi > > > On 1 December 2010 09:03, atul parihar <[email protected]> wrote: > > >> yes possible > > >> On 11/28/10, athi <[email protected]> wrote: > >> > hi > > >> > i have one image in one border containter. > > >> > i want to drag a copy of that image into another border continer. > > >> > my program working only drag and move the image > > >> > is it possible in flex > > >> > pls suggests. > > >> > regards > > >> > athi > > >> > -- > >> > You received this message because you are subscribed to the Google > >> Groups > >> > "Flex India Community" group. > >> > To post to this group, send email to [email protected]. > >> > To unsubscribe from this group, send email to > >> > [email protected]<flex_india%2bunsubscr...@googlegrou > >> > ps.com> > >> . > >> > For more options, visit this group at > >> >http://groups.google.com/group/flex_india?hl=en. > > >> -- > >> You received this message because you are subscribed to the Google Groups > >> "Flex India Community" group. > >> To post to this group, send email to [email protected]. > >> To unsubscribe from this group, send email to > >> [email protected]<flex_india%2bunsubscr...@googlegrou > >> ps.com> > >> . > >> For more options, visit this group at > >>http://groups.google.com/group/flex_india?hl=en. > > > -- > > You received this message because you are subscribed to the Google Groups > > "Flex India Community" group. > > To post to this group, send email to [email protected]. > > To unsubscribe from this group, send email to > > [email protected]<flex_india%2bunsubscr...@googlegrou > > ps.com> > > . > > For more options, visit this group at > >http://groups.google.com/group/flex_india?hl=en. > > -- > Ryan.Cao > @AnHui University of Technology > > blog:http://www.rcant.com/http://cqshbomb.spaces.live.com/ -- You received this message because you are subscribed to the Google Groups "Flex India Community" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/flex_india?hl=en.

