Previous incarnations of the viewer (in the AIR app generated prototype) had used a magnifying glass metaphor. I have always liked the way it keeps the user informed of where they are in the image while allowing magnification.
The Zoomify type metaphor with a magnified viewport and a small peripheral image map never seemed quite as intuitive.
So although I initially went with the Zoomify functionality I have since added the option to use a magnifying glass.
Some things about zooming in Flash:
Scaling happens from (0,0) co-ordinates (in Flash the top left corner). This tends to push everything to the bottom right as you zoom.
Most people want what is in the center of their viewport to stay centered but get bigger when they zoom.
This can be achieved by nesting movieclips so (0,0) of the scaled clip is always in the center of the viewport.
Things get more complicated with a magnifying glass.
If a magnifying glass is a window to a zoomed image, as the glass is moved by the user by distance dist the zoomed image must be moved by the minus (the square root of the magnification)-1*dist to so that it maps to the area that should be under the glass.
Complicated but tricky 'til you figure it out (at least it was to me).
No comments:
Post a Comment