Hi all, I am making some test programs with the help of tutorials and Flex samples. But have a problem with implementing below function. I am very glad if someone can give me a advise, sample code or url of document which I can refer.
what I want to make is: 1.In the application there is a canvas and GridItem(images). 2.When I click(mouse button is pressed down and released) on the image and then move the mouse pointer to the canvas, "clicked" image will appear on the canvas with mouse pointer. (When I move mouse pointer inside the canvas image also moves with mousepointer) 3.when I click(mouse button is pressed down and released) on the canvas then image drops on the canvas(at the "clicked" place). Thanks Prasad Here's the mxml code: ------------------------------------------------------- <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml"> <mx:Panel width="100%" height="100%" title="Panal1"> <mx:Canvas width="100%" height="100%"> <mx:Canvas x="0" y="0" width="100%" height="50" backgroundColor="#B9C6F9"> <mx:Grid x="1" y="1" > <mx:GridRow> <mx:GridItem> <mx:GridItem> <mx:Image source="Image1.jpg" id="jo2" width="32" height="32"/> </mx:GridItem> <mx:GridItem> <mx:Image source="Image2.jpg" id="jo3" width="32" height="32"/> </mx:GridItem> </mx:GridItem> </mx:GridRow> </mx:Grid> </mx:Canvas> <mx:Canvas id="Canvas1" x="1" y="61" width="100%" height="225" backgroundColor="#DEE0FE" vScrollPolicy="auto" visible="true"></mx:Canvas> </mx:Canvas> </mx:Panel> </mx:Application> ------------------------ Yahoo! Groups Sponsor --------------------~--> Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM --------------------------------------------------------------------~-> -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/