Re: [flexcoders] Flex 4.6 Image Panning and Zooming
Laurence did you ever find anything? I had done something similar using bitmapData in Flex3 but now I want to handle it differently and am having a heck of a time; if I scale the image within it's holder, it's clipping, so you pan around and you've got just a piece of the original image. On Jul 2, 2012, at 6:12 PM, Laurence lmacne...@comcast.net wrote: I'm working with Flex 4.6, and I'm trying to allow a user to pan and zoom an image that's larger than the display-window... I've found a couple of Pan|Zoom utilities (Adobe FIG Pan|Zoom and OpenZoom), but they're both written for versions of Flex that long pre-date Flex 4.6... Anyone know where I can find information on how to do this in Flex 4.6? Thanks, Laurence MacNeill Mableton, Georgia, USA -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
Re: [flexcoders] Setting transformX, transformY from mouseUp event?
Any chance you can share some of this code? I did it in Flex3 with bitmap data, am trying it now with spark components and am only getting the image to scale but upon panning I've only got a clip of the image... On May 31, 2011, at 2:14 PM, yoohoo r...@goodlux.com wrote: Hello all - I'm working on an application where I'd like to have a pannable/zoomable image inside of a group. I'd like to be able to zoom from the point where I drop the image after dragging it around. I've got everything working well except for one problem. In the mouseUp handler, I set the transformX and tranformY properties to the event.stageX and event.stageY coordinates of the mouse event. This should set the zoom point to whereever the mouse lifted up. However, it seems to jump the image back to where the drag started. I've tried everything I can think of, I'm just wondering if anyone out there recognizes this problem and remembers what they did to work around. Thanks! -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links