Zoom in Effect
Hi, im trying to create a zoom/pan effect for an image gallery.
The thing is that i dont have any idea on how to do it so ive started to play with it.
I created a zoom button that basiclly make the image bigger and a mask for the image so
no matter how big you going to scale it its going to show the masked area only and if i want to pan
all i have to do is move the image inside of the mask. but my problem is that i use a MouseEvent.MOUSE_DOWN
event on the zoom in button and the function scale it up and position it in the center only once,
what i want to do is as long as the user have is mouse down the image will zoom and when the user releases the mouse
it's going to stop.
Thats the effect that im trying to achieve http://flashden.net/item/zoom-pan-controls-with-dynamic-image-settings/15713.
But the cool thing about this gallery is that when you zoom in or out it actually ease out or in and stop and it run's really smooth.
Any1 have any idea on how to get this zoom in effect ?
Thanks