I am making a panoramic image system in Flash. Although I don’t want the image to keep panning once it reaches either end of the image. This part I have got working to my desire (see included attachment).
However, I would like the image speed to slow down as it nears the each edge of the canvas. However, this cannot be linked to the position of the mouse (as this merely sets the speed and direction of the image panning).
I have included what I have managed so far. It is in basic format and will eventually use an image of 3250 x 300 (which is larger than the canvas). Bearing that in mind, minX will then eventually be -2700 and maxX will be 0. Anyway, that’s beside the point, but hopefully this little example will give you an idea of what I am doing.
If anyone could shed some light that would be great.